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
158 dctx = (dpIOCtx *) ctx; in dynamicSeek()
201 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument
204 dctx = (dpIOCtx *) ctx; in dynamicPutbuf()
219 static void dynamicPutchar (struct gdIOCtx *ctx, int a) in dynamicPutchar() argument
225 dctx = (dpIOCtxPtr) ctx; in dynamicPutchar()
230 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) in dynamicGetbuf() argument
236 dctx = (dpIOCtxPtr) ctx; in dynamicGetbuf()
255 static int dynamicGetchar (gdIOCtxPtr ctx) in dynamicGetchar() argument
260 rv = dynamicGetbuf (ctx, &b, 1); in dynamicGetchar()