aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2013-06-24 22:58:14 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2013-06-24 22:58:14 +0000
commit2b352ad4cd7fd9516cc197430b965a30639077b9 (patch)
treecda7af980a45edfcc837e724653c0c9c0fc125dc /src
parent9725b4439dcce40fc464fd7062cb31b3fba94513 (diff)
downloadPROJ-2b352ad4cd7fd9516cc197430b965a30639077b9.tar.gz
PROJ-2b352ad4cd7fd9516cc197430b965a30639077b9.zip
add missing set/get fileapi on context functions
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2354 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
-rw-r--r--src/pj_ctx.c20
-rw-r--r--src/proj_api.h2
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();