diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2013-06-22 01:26:52 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2013-06-22 01:26:52 +0000 |
| commit | 07695742d49418f87338f0ffa48a16b9fae25767 (patch) | |
| tree | 72d30bc5aaa4fcf39a06cd36dabf63cf777c748d /src/projects.h | |
| parent | b9b25dd4d55b42ae2db30926a9038228085f8188 (diff) | |
| download | PROJ-07695742d49418f87338f0ffa48a16b9fae25767.tar.gz PROJ-07695742d49418f87338f0ffa48a16b9fae25767.zip | |
preliminary step implementing virtual fileio
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2344 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/projects.h')
| -rw-r--r-- | src/projects.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/projects.h b/src/projects.h index f9dcea64..fc64ba59 100644 --- a/src/projects.h +++ b/src/projects.h @@ -125,12 +125,15 @@ extern double hypot(double, double); #define DIR_CHAR '/' #endif +struct projFileAPI_t; + /* proj thread context */ typedef struct { int last_errno; int debug_level; void (*logger)(void *, int, const char *); void *app_data; + struct projFileAPI_t *fileapi; } projCtx_t; /* datum_type values */ @@ -391,6 +394,13 @@ typedef struct _PJ_GridCatalog { } PJ_GridCatalog; +/* file api */ +PAFile pj_ctx_fopen(projCtx ctx, const char *filename, const char *access); +size_t pj_ctx_fread(projCtx ctx, void *buffer, size_t size, size_t nmemb, PAFile file); +int pj_ctx_fseek(projCtx ctx, PAFile file, long offset, int whence); +long pj_ctx_ftell(projCtx ctx, PAFile file); +void pj_ctx_fclose(projCtx ctx, PAFile file); + /* procedure prototypes */ double dmstor(const char *, char **); double dmstor_ctx(projCtx ctx, const char *, char **); |
