Skip to content
Snippets Groups Projects
Commit 0fb1b046 authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

...

parent cbceec45
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ void dap_http_simple_module_deinit( void )
* @param a_reply_size_max Maximum reply size
* @param a_callback Callback for data processing
*/
void dap_http_simple_proc_add( dap_http_t *a_http, const char *a_url_path, size_t a_reply_size_max, dap_http_simple_callback_t a_callback )
struct dap_http_simple_url_proc * dap_http_simple_proc_add( dap_http_t *a_http, const char *a_url_path, size_t a_reply_size_max, dap_http_simple_callback_t a_callback )
{
dap_http_simple_url_proc_t *l_url_proc = DAP_NEW_Z( dap_http_simple_url_proc_t );
......@@ -129,6 +129,7 @@ void dap_http_simple_proc_add( dap_http_t *a_http, const char *a_url_path, size_
s_http_client_headers_read, NULL, // Headers read, write
s_http_client_data_read, s_http_client_data_write, // Data read, write
NULL); // errror
return l_url_proc;
}
static void _free_user_agents_list()
......
......@@ -64,7 +64,7 @@ typedef struct dap_http_simple {
#define DAP_HTTP_SIMPLE(a) ((dap_http_simple_t*) (a)->_inheritor )
void dap_http_simple_proc_add( dap_http_t *sh, const char *url_path, size_t reply_size_max, dap_http_simple_callback_t cb ); // Add simple processor
struct dap_http_simple_url_proc * dap_http_simple_proc_add( dap_http_t *sh, const char *url_path, size_t reply_size_max, dap_http_simple_callback_t cb ); // Add simple processor
int dap_http_simple_module_init( void );
void dap_http_simple_module_deinit(void);
......
......@@ -25,3 +25,4 @@
#include "dap_http.h"
int dap_chain_net_news_init(dap_http_t * a_http);
void dap_chain_net_srv_vpn_cdb_news_cache_reset(void);
......@@ -37,5 +37,6 @@ int dap_chain_net_srv_vpn_cdb_server_list_init(void);
void dap_chain_net_srv_vpn_cdb_server_list_deinit(void);
void dap_chain_net_srv_vpn_cdb_server_list_add_proc(struct dap_http * sh, const char * url);
void dap_chain_net_srv_vpn_cdb_server_list_cache_reset(void);
int dap_chain_net_srv_vpn_cdb_server_list_static_create(dap_chain_net_t *a_net);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment