From 2b352ad4cd7fd9516cc197430b965a30639077b9 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Mon, 24 Jun 2013 22:58:14 +0000 Subject: add missing set/get fileapi on context functions git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2354 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/pj_ctx.c | 20 ++++++++++++++++++++ src/proj_api.h | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3