diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-12-23 15:58:47 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-12-23 18:19:35 +0100 |
| commit | 9d0bd793b552e248a10f9ff8b6c62d942fe437a1 (patch) | |
| tree | 21b5b1bb9993391dc9afc9d2f470cfa5d6595c50 /src/proj.h | |
| parent | d3bdbb841719780560438129b4911a86a7a4be58 (diff) | |
| download | PROJ-9d0bd793b552e248a10f9ff8b6c62d942fe437a1.tar.gz PROJ-9d0bd793b552e248a10f9ff8b6c62d942fe437a1.zip | |
Network: remove dedicated get_file_size() callback to use get_header_value(), and test
Diffstat (limited to 'src/proj.h')
| -rw-r--r-- | src/proj.h | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -367,8 +367,7 @@ typedef struct PROJ_NETWORK_HANDLE PROJ_NETWORK_HANDLE; * amount of bytes read (== size_to_read if the file is larger than size_to_read). * 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 and proj_network_get_file_size_cbk_type - * callbacks. + * proj_network_get_header_value_cbk_type callback. * * @return a non-NULL opaque handle in case of success. */ @@ -393,12 +392,6 @@ typedef const char* (*proj_network_get_header_value_cbk_type)( const char* header_name, void* user_data); -/** Network access: get file size */ -typedef unsigned long long (*proj_network_get_file_size_cbk_type)( - PJ_CONTEXT* ctx, - PROJ_NETWORK_HANDLE* handle, - void* user_data); - /** Network access: read range * * Read size_to_read bytes from handle, starting at offset, into @@ -424,7 +417,6 @@ int PROJ_DLL proj_context_set_network_callbacks( proj_network_open_cbk_type open_cbk, proj_network_close_cbk_type close_cbk, proj_network_get_header_value_cbk_type get_header_value_cbk, - proj_network_get_file_size_cbk_type get_file_size_cbk, proj_network_read_range_type read_range_cbk, proj_network_get_last_error_type get_last_error_cbk, void* user_data); |
