| 621 | /************************************************************************/ |
| 622 | |
| 623 | gdIOCtx *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 | /* ==================================================================== */ |
no test coverage detected