mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
FS-2936 plan B for curl stuff
This commit is contained in:
@@ -197,6 +197,20 @@ SWITCH_DECLARE(FILE *) switch_core_data_channel(switch_text_channel_t channel)
|
||||
return handle;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_DECLARE(int) switch_core_curl_count(int *val)
|
||||
{
|
||||
if (!val) {
|
||||
switch_mutex_lock(runtime.global_mutex);
|
||||
return runtime.curl_count;
|
||||
}
|
||||
|
||||
runtime.curl_count = *val;
|
||||
switch_mutex_unlock(runtime.global_mutex);
|
||||
return 0;
|
||||
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_core_remove_state_handler(const switch_state_handler_table_t *state_handler)
|
||||
{
|
||||
int index, tmp_index = 0;
|
||||
|
Reference in New Issue
Block a user