Lines Matching refs:ctx

41 	gdIOCtx ctx;  member
52 static void gdFreeDynamicCtx (struct gdIOCtx *ctx);
58 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len);
59 static int dynamicGetchar (gdIOCtxPtr ctx);
72 dpIOCtx *ctx; in gdNewDynamicCtxEx() local
75 ctx = (dpIOCtx *) gdMalloc (sizeof (dpIOCtx)); in gdNewDynamicCtxEx()
79 ctx->dp = dp; in gdNewDynamicCtxEx()
81 ctx->ctx.getC = dynamicGetchar; in gdNewDynamicCtxEx()
82 ctx->ctx.putC = dynamicPutchar; in gdNewDynamicCtxEx()
84 ctx->ctx.getBuf = dynamicGetbuf; in gdNewDynamicCtxEx()
85 ctx->ctx.putBuf = dynamicPutbuf; in gdNewDynamicCtxEx()
87 ctx->ctx.seek = dynamicSeek; in gdNewDynamicCtxEx()
88 ctx->ctx.tell = dynamicTell; in gdNewDynamicCtxEx()
90 ctx->ctx.gd_free = gdFreeDynamicCtx; in gdNewDynamicCtxEx()
92 return (gdIOCtx *) ctx; in gdNewDynamicCtxEx()
95 void * gdDPExtractData (struct gdIOCtx *ctx, int *size) in gdDPExtractData() argument
101 dctx = (dpIOCtx *) ctx; in gdDPExtractData()
124 static void gdFreeDynamicCtx (struct gdIOCtx *ctx) in gdFreeDynamicCtx() argument
129 dctx = (dpIOCtx *) ctx; in gdFreeDynamicCtx()
132 gdFree(ctx); in gdFreeDynamicCtx()
140 static long dynamicTell (struct gdIOCtx *ctx) in dynamicTell() argument
144 dctx = (dpIOCtx *) ctx; in dynamicTell()
149 static int dynamicSeek (struct gdIOCtx *ctx, const int pos) in dynamicSeek() argument
155 dctx = (dpIOCtx *) ctx; in dynamicSeek()
198 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument
201 dctx = (dpIOCtx *) ctx; in dynamicPutbuf()
216 static void dynamicPutchar (struct gdIOCtx *ctx, int a) in dynamicPutchar() argument
222 dctx = (dpIOCtxPtr) ctx; in dynamicPutchar()
227 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) in dynamicGetbuf() argument
233 dctx = (dpIOCtxPtr) ctx; in dynamicGetbuf()
252 static int dynamicGetchar (gdIOCtxPtr ctx) in dynamicGetchar() argument
257 rv = dynamicGetbuf (ctx, &b, 1); in dynamicGetchar()