diff options
Diffstat (limited to 'src/cmd/page/page.h')
| -rw-r--r-- | src/cmd/page/page.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/src/cmd/page/page.h b/src/cmd/page/page.h index be54e386..7e6c526e 100644 --- a/src/cmd/page/page.h +++ b/src/cmd/page/page.h @@ -1,3 +1,5 @@ +#undef pipe + typedef struct Document Document; struct Document { @@ -12,6 +14,31 @@ struct Document { void *extra; }; +typedef struct Graphic Graphic; + +struct Graphic { + int type; + int fd; + char *name; +}; + +enum { + Ipic, + Itiff, + Ijpeg, + Igif, + Iinferno, + Ifax, + Icvt2pic, + Iplan9bm, + Iccittg4, + Ippm, + Ipng, + Iyuv, + Ibmp, +}; + + void *emalloc(int); void *erealloc(void*, int); char *estrdup(char*); @@ -48,10 +75,10 @@ Image *resample(Image*, Image*); /* ghostscript interface shared by ps, pdf */ typedef struct GSInfo GSInfo; struct GSInfo { + Graphic g; int gsfd; Biobuf gsrd; int gspid; - int gsdfd; int ppi; }; void waitgs(GSInfo*); @@ -70,6 +97,7 @@ void wexits(char*); Image* xallocimage(Display*, Rectangle, ulong, int, ulong); int bell(void*, char*); int opentemp(char *template); +Image* convert(Graphic *g); extern int stdinfd; extern int truecolor; |
