From 9d0bd793b552e248a10f9ff8b6c62d942fe437a1 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 23 Dec 2019 15:58:47 +0100 Subject: Network: remove dedicated get_file_size() callback to use get_header_value(), and test --- src/proj.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/proj.h') diff --git a/src/proj.h b/src/proj.h index 5f080285..95bbacd1 100644 --- a/src/proj.h +++ b/src/proj.h @@ -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); -- cgit v1.2.3