diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_ctx.c | 20 | ||||
| -rw-r--r-- | src/proj_api.h | 2 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/pj_ctx.c b/src/pj_ctx.c index ccd2292c..d34dac2c 100644 --- a/src/pj_ctx.c +++ b/src/pj_ctx.c @@ -177,4 +177,24 @@ void *pj_ctx_get_app_data( projCtx ctx ) return ctx->app_data; } +/************************************************************************/ +/* pj_ctx_set_fileapi() */ +/************************************************************************/ + +void pj_ctx_set_fileapi( projCtx ctx, projFileAPI *fileapi ) + +{ + ctx->fileapi = fileapi; +} + +/************************************************************************/ +/* pj_ctx_get_fileapi() */ +/************************************************************************/ + +projFileAPI *pj_ctx_get_fileapi( projCtx ctx ) + +{ + return ctx->fileapi; +} + diff --git a/src/proj_api.h b/src/proj_api.h index 84e7eae8..236207e5 100644 --- a/src/proj_api.h +++ b/src/proj_api.h @@ -127,7 +127,7 @@ void pj_ctx_set_debug( projCtx, int ); void pj_ctx_set_logger( projCtx, void (*)(void *, int, const char *) ); void pj_ctx_set_app_data( projCtx, void * ); void *pj_ctx_get_app_data( projCtx ); -void pj_ctx_set_file( projCtx, projFileAPI *); +void pj_ctx_set_fileapi( projCtx, projFileAPI *); projFileAPI *pj_ctx_get_fileapi( projCtx ); projFileAPI *pj_get_default_fileapi(); |
