summaryrefslogtreecommitdiffstats
path: root/src/cmd/page/page.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2007-03-26 20:55:26 +0000
committerrsc <devnull@localhost>2007-03-26 20:55:26 +0000
commit05a4d855f167ae2d0d2c0ba0e386d933172b71ea (patch)
tree8a1c64cf67479d8cab98b70fd25a12929f566634 /src/cmd/page/page.h
parent6c4c5c5b959ec8a2e85510bdf85339582f638f36 (diff)
downloadplan9port-05a4d855f167ae2d0d2c0ba0e386d933172b71ea.tar.gz
plan9port-05a4d855f167ae2d0d2c0ba0e386d933172b71ea.zip
add page (Kris Maglione)
Diffstat (limited to 'src/cmd/page/page.h')
-rw-r--r--src/cmd/page/page.h30
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;