aboutsummaryrefslogtreecommitdiff
path: root/src/pj_open_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pj_open_lib.c')
-rw-r--r--src/pj_open_lib.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c
index 859adede..08532beb 100644
--- a/src/pj_open_lib.c
+++ b/src/pj_open_lib.c
@@ -29,6 +29,7 @@
*****************************************************************************/
#define PJ_LIB__
+#include "proj_internal.h"
#include <projects.h>
#include <stdio.h>
#include <string.h>
@@ -86,10 +87,19 @@ void pj_set_searchpath ( int count, const char **path )
strcpy(search_path[i], path[i]);
}
}
-
+
path_count = count;
}
+/* just a couple of helper functions that lets other functions
+ access the otherwise private search path */
+const char **proj_get_searchpath(void) {
+ return (const char **)search_path;
+}
+
+int proj_get_path_count(void) {
+ return path_count;
+}
/************************************************************************/
/* pj_open_lib_ex() */
/************************************************************************/