mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
BNPH-6149: allow to use system curl again, fix some types on auth_scheme values to all be long, don't use curl private function in our wrapper. This may cause missing symbol curl_easy_setopt with visibility turned on, if it does that, please let me know
This commit is contained in:
@@ -2,9 +2,6 @@
|
||||
#include "switch_curl.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
CURLcode Curl_setopt(switch_CURL *curl, CURLoption option, va_list arg);
|
||||
|
||||
|
||||
SWITCH_DECLARE(switch_CURL *) switch_curl_easy_init(void)
|
||||
{
|
||||
return curl_easy_init();
|
||||
@@ -46,18 +43,6 @@ SWITCH_DECLARE(void) switch_curl_slist_free_all(switch_curl_slist_t * list)
|
||||
curl_slist_free_all((struct curl_slist *) list);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_CURLcode) switch_curl_easy_setopt(CURL *handle, switch_CURLoption option, ...)
|
||||
{
|
||||
va_list ap;
|
||||
switch_CURLcode code;
|
||||
|
||||
va_start(ap, option);
|
||||
code = Curl_setopt(handle, option, ap);
|
||||
va_end(ap);
|
||||
|
||||
return code;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(const char *) switch_curl_easy_strerror(switch_CURLcode errornum )
|
||||
{
|
||||
return curl_easy_strerror(errornum);
|
||||
|
Reference in New Issue
Block a user