add page (Kris Maglione)

This commit is contained in:
rsc 2007-03-26 20:55:26 +00:00
parent 6c4c5c5b95
commit 05a4d855f1
15 changed files with 448 additions and 480 deletions

View file

@ -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;