MCPcopy Create free account
hub / github.com/MapServer/MapServer / msIO_getGDIOCtx

Function msIO_getGDIOCtx

mapio.c:623–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621/************************************************************************/
622
623gdIOCtx *msIO_getGDIOCtx( FILE *fp )
624
625{
626 msIO_gdIOCtx *merged_context;
627 msIOContext *context = msIO_getHandler( fp );
628
629 if( context == NULL )
630 return NULL;
631
632 merged_context = (msIO_gdIOCtx *) calloc(1,sizeof(msIO_gdIOCtx));
633 merged_context->gd_io_ctx.putC = msIO_gd_putC;
634 merged_context->gd_io_ctx.putBuf = msIO_gd_putBuf;
635 merged_context->ms_io_ctx = context;
636
637 return (gdIOCtx *) merged_context;
638}
639
640/* ==================================================================== */
641/* ==================================================================== */

Callers 1

saveGdImageFunction · 0.85

Calls 1

msIO_getHandlerFunction · 0.85

Tested by

no test coverage detected