Back to index

php5  5.3.10
gd_io.h
Go to the documentation of this file.
00001 #ifndef GD_IO_H
00002 #define GD_IO_H 1
00003 
00004 #include <stdio.h>
00005 
00006 #ifdef VMS
00007 #define Putchar gdPutchar
00008 #endif
00009 
00010 typedef struct gdIOCtx {
00011        int    (*getC)(struct gdIOCtx*);
00012        int    (*getBuf)(struct gdIOCtx*, void*, int);
00013 
00014        void   (*putC)(struct gdIOCtx*, int);
00015        int    (*putBuf)(struct gdIOCtx*, const void*, int);
00016 
00017        int    (*seek)(struct gdIOCtx*, const int);
00018        long   (*tell)(struct gdIOCtx*);
00019 
00020        void   (*gd_free)(struct gdIOCtx*);
00021 
00022 } gdIOCtx;
00023 
00024 typedef struct gdIOCtx      *gdIOCtxPtr;
00025 
00026 void Putword(int w, gdIOCtx *ctx);
00027 void Putchar(int c, gdIOCtx *ctx);
00028 
00029 void gdPutC(const unsigned char c, gdIOCtx *ctx);
00030 int gdPutBuf(const void *, int, gdIOCtx*);
00031 void gdPutWord(int w, gdIOCtx *ctx);
00032 void gdPutInt(int w, gdIOCtx *ctx);
00033 
00034 int gdGetC(gdIOCtx *ctx);
00035 int gdGetBuf(void *, int, gdIOCtx*);
00036 int gdGetByte(int *result, gdIOCtx *ctx);
00037 int gdGetWord(int *result, gdIOCtx *ctx);
00038 int gdGetInt(int *result, gdIOCtx *ctx);
00039 
00040 int gdSeek(gdIOCtx *ctx, const int);
00041 long gdTell(gdIOCtx *ctx);
00042 
00043 #endif