FS-2936 plan B for curl stuff

This commit is contained in:
Anthony Minessale committed 2011-05-13 13:17:54 -05:00
1 parent c196e2c109
commit acf3090adf
15 files changed
+134 -207

No files matched your search

+4 -3
View File
@@ -31,7 +31,8 @@
*
*/
#include <switch.h>
#include <curl/curl.h>
#include <switch_curl.h>
SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load);
SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_curl_shutdown);
@@ -548,7 +549,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_xml_curl_load)
globals.hash_tail = NULL;
if (do_config() == SWITCH_STATUS_SUCCESS) {
curl_global_init(CURL_GLOBAL_ALL);
switch_curl_init();
} else {
return SWITCH_STATUS_FALSE;
}
@@ -573,7 +574,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_xml_curl_shutdown)
}
switch_xml_unbind_search_function_ptr(xml_url_fetch);
curl_global_cleanup();
switch_curl_destroy();
return SWITCH_STATUS_SUCCESS;
}