mirror of
https://github.com/php/php-src.git
synced 2024-10-15 05:22:48 +00:00
7a8cade379
This initial checkin has no changes to any of the libgd code so it can be used as a basis for diffs. It also will not build currently because of this. The PHP gd checks need to be incorporated along with a bit of other config magic. It also shouldn't break the build and will only take effect if you use --with-gd=php right now.
40 lines
917 B
C
40 lines
917 B
C
#ifndef GD_IO_H
|
|
#define GD_IO_H 1
|
|
|
|
#include <stdio.h>
|
|
|
|
typedef struct gdIOCtx {
|
|
int (*getC)(struct gdIOCtx*);
|
|
int (*getBuf)(struct gdIOCtx*, void*, int);
|
|
|
|
void (*putC)(struct gdIOCtx*, int);
|
|
int (*putBuf)(struct gdIOCtx*, const void*, int);
|
|
|
|
int (*seek)(struct gdIOCtx*, const int);
|
|
long (*tell)(struct gdIOCtx*);
|
|
|
|
void (*free)(struct gdIOCtx*);
|
|
|
|
} gdIOCtx;
|
|
|
|
typedef struct gdIOCtx *gdIOCtxPtr;
|
|
|
|
void Putword(int w, gdIOCtx *ctx);
|
|
void Putchar(int c, gdIOCtx *ctx);
|
|
|
|
void gdPutC(const unsigned char c, gdIOCtx *ctx);
|
|
int gdPutBuf(const void *, int, gdIOCtx*);
|
|
void gdPutWord(int w, gdIOCtx *ctx);
|
|
void gdPutInt(int w, gdIOCtx *ctx);
|
|
|
|
int gdGetC(gdIOCtx *ctx);
|
|
int gdGetBuf(void *, int, gdIOCtx*);
|
|
int gdGetByte(int *result, gdIOCtx *ctx);
|
|
int gdGetWord(int *result, gdIOCtx *ctx);
|
|
int gdGetInt(int *result, gdIOCtx *ctx);
|
|
|
|
int gdSeek(gdIOCtx *ctx, const int);
|
|
long gdTell(gdIOCtx *ctx);
|
|
|
|
#endif
|