aboutsummaryrefslogtreecommitdiff
path: root/src/proj.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-20 15:01:33 +0100
committerGitHub <noreply@github.com>2020-01-20 15:01:33 +0100
commita6390b59ae2bad2a763e7ab3341ee4c80e708b3d (patch)
tree26d5016def90e3e9f71a51da694ff3028e1006ed /src/proj.h
parentf1209ff020cc9f5490f8e6c7edced6877f53da49 (diff)
parent90b6685a990b8c4931aafb508853401a89163e78 (diff)
downloadPROJ-a6390b59ae2bad2a763e7ab3341ee4c80e708b3d.tar.gz
PROJ-a6390b59ae2bad2a763e7ab3341ee4c80e708b3d.zip
Merge pull request #1826 from rouault/rfc4_code_review
[RFC4_dev] Address code review comments
Diffstat (limited to 'src/proj.h')
-rw-r--r--src/proj.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/proj.h b/src/proj.h
index 33057617..8add29ac 100644
--- a/src/proj.h
+++ b/src/proj.h
@@ -401,6 +401,9 @@ typedef const char* (*proj_network_get_header_value_cbk_type)(
*
* Read size_to_read bytes from handle, starting at offset, into
* buffer.
+ * During this read, the implementation should make sure to store the HTTP
+ * headers from the server response to be able to respond to
+ * proj_network_get_header_value_cbk_type callback.
*
* error_string_max_size should be the maximum size that can be written into
* the out_error_string buffer (including terminating nul character).
@@ -440,6 +443,15 @@ void PROJ_DLL proj_grid_cache_set_ttl(PJ_CONTEXT* ctx, int ttl_seconds);
void PROJ_DLL proj_grid_cache_clear(PJ_CONTEXT* ctx);
+int PROJ_DLL proj_is_download_needed(PJ_CONTEXT* ctx,
+ const char* url_or_filename,
+ int ignore_ttl_setting);
+int PROJ_DLL proj_download_file(PJ_CONTEXT *ctx, const char *url_or_filename,
+ int ignore_ttl_setting,
+ int (*progress_cbk)(PJ_CONTEXT *, double pct,
+ void *user_data),
+ void *user_data);
+
/*! @cond Doxygen_Suppress */
/* Manage the transformation definition object PJ */