Add missing EXTERN C in FS header files, needed for the upcoming mod_v8 build

This commit is contained in:
Peter Olsson 2014-01-14 09:31:36 +01:00
parent 5f7b00fb69
commit 64b92e72ec
2 changed files with 6 additions and 0 deletions

View File

@ -32,6 +32,7 @@
#define __SWITCH_CURL_H
#include "curl/curl.h"
SWITCH_BEGIN_EXTERN_C
typedef void switch_CURL;
typedef struct curl_slist switch_curl_slist_t;
@ -50,6 +51,8 @@ SWITCH_DECLARE(const char *) switch_curl_easy_strerror(switch_CURLcode errornum
SWITCH_DECLARE(void) switch_curl_init(void);
SWITCH_DECLARE(void) switch_curl_destroy(void);
SWITCH_DECLARE(switch_status_t) switch_curl_process_form_post_params(switch_event_t *event, switch_CURL *curl_handle, struct curl_httppost **formpostp);
SWITCH_END_EXTERN_C
#endif

View File

@ -21,6 +21,8 @@
#ifndef FREESWITCH_DSO_H
#define FREESWITCH_DSO_H
SWITCH_BEGIN_EXTERN_C
typedef int (*switch_dso_func_t) (void);
#ifdef WIN32
typedef HINSTANCE switch_dso_lib_t;
@ -35,6 +37,7 @@ SWITCH_DECLARE(switch_dso_lib_t) switch_dso_open(const char *path, int global, c
SWITCH_DECLARE(switch_dso_func_t) switch_dso_func_sym(switch_dso_lib_t lib, const char *sym, char **err);
SWITCH_DECLARE(void *) switch_dso_data_sym(switch_dso_lib_t lib, const char *sym, char **err);
SWITCH_END_EXTERN_C
#endif