File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,9 @@ static func_t load_function(void *handle, const char *name)
88
88
}
89
89
#endif
90
90
91
+ typedef struct curl_version_info_data * (* curl_version_info_type )(CURLversion version );
92
+ static curl_version_info_type curl_version_info_func ;
93
+
91
94
typedef char * (* curl_easy_escape_type )(CURL * handle , const char * string , int length );
92
95
static curl_easy_escape_type curl_easy_escape_func ;
93
96
@@ -192,6 +195,7 @@ static void lazy_load_curl(void)
192
195
if (!libcurl )
193
196
die ("failed to load library '%s'" , LIBCURL_FILE_NAME ("libcurl" ));
194
197
198
+ curl_version_info_func = (curl_version_info_type )load_function (libcurl , "curl_version_info" );
195
199
curl_easy_escape_func = (curl_easy_escape_type )load_function (libcurl , "curl_easy_escape" );
196
200
curl_free_func = (curl_free_type )load_function (libcurl , "curl_free" );
197
201
curl_global_init_func = (curl_global_init_type )load_function (libcurl , "curl_global_init" );
@@ -225,6 +229,12 @@ static void lazy_load_curl(void)
225
229
curl_easy_setopt_off_t_func = (curl_easy_setopt_off_t_type )curl_easy_setopt_func ;
226
230
}
227
231
232
+ struct curl_version_info_data * curl_version_info (CURLversion version )
233
+ {
234
+ lazy_load_curl ();
235
+ return curl_version_info_func (version );
236
+ }
237
+
228
238
char * curl_easy_escape (CURL * handle , const char * string , int length )
229
239
{
230
240
lazy_load_curl ();
You can’t perform that action at this time.
0 commit comments