RTS API Documentation  1.10.11
switch_curl.h
Go to the documentation of this file.
1 /*
2  * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
3  * Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
4  *
5  * Version: MPL 1.1
6  *
7  * The contents of this file are subject to the Mozilla Public License Version
8  * 1.1 (the "License"); you may not use this file except in compliance with
9  * the License. You may obtain a copy of the License at
10  * http://www.mozilla.org/MPL/
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
18  *
19  * The Initial Developer of the Original Code is
20  * Anthony Minessale II <anthm@freeswitch.org>
21  * Portions created by the Initial Developer are Copyright (C)
22  * the Initial Developer. All Rights Reserved.
23  *
24  * Contributor(s):
25  *
26  *
27  * switch_curl.h
28  *
29  */
30 
31 #ifndef __SWITCH_CURL_H
32 #define __SWITCH_CURL_H
33 #include <curl/curl.h>
34 
36 
37 typedef void switch_CURL;
38 typedef struct curl_slist switch_curl_slist_t;
39 typedef int switch_CURLINFO;
40 typedef int switch_CURLcode;
41 typedef int switch_CURLoption;
42 
43 #define HAVE_SWITCH_CURL_MIME
44 typedef void switch_curl_mime;
45 
59 #define switch_curl_easy_setopt curl_easy_setopt
60 
62 
63 #endif
64 
65 
66 /* For Emacs:
67  * Local Variables:
68  * mode:c
69  * indent-tabs-mode:t
70  * tab-width:4
71  * c-basic-offset:4
72  * End:
73  * For VIM:
74  * vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
75  */
76 
#define SWITCH_END_EXTERN_C
Definition: switch.h:43
int switch_CURLoption
Definition: switch_curl.h:41
switch_CURLcode switch_curl_easy_getinfo(switch_CURL *curl, switch_CURLINFO info,...)
Definition: switch_curl.c:16
Representation of an event.
Definition: switch_event.h:80
switch_CURL * switch_curl_easy_init(void)
Definition: switch_curl.c:5
switch_CURLcode switch_curl_easy_perform(switch_CURL *handle)
Definition: switch_curl.c:10
void switch_curl_destroy(void)
Definition: switch_curl.c:56
void switch_curl_mime_free(switch_curl_mime **mimep)
Definition: switch_curl.c:171
void switch_curl_easy_cleanup(switch_CURL *handle)
Definition: switch_curl.c:28
switch_curl_slist_t * switch_curl_slist_append(switch_curl_slist_t *list, const char *string)
Definition: switch_curl.c:35
void switch_curl_mime
Definition: switch_curl.h:44
SWITCH_BEGIN_EXTERN_C typedef void switch_CURL
Definition: switch_curl.h:37
int switch_CURLcode
Definition: switch_curl.h:40
struct curl_slist switch_curl_slist_t
Definition: switch_curl.h:38
switch_status_t
Common return values.
#define SWITCH_DECLARE(type)
const char * switch_curl_easy_strerror(switch_CURLcode errornum)
Definition: switch_curl.c:46
#define switch_curl_easy_setopt
Definition: switch_curl.h:59
void switch_curl_init(void)
Definition: switch_curl.c:51
void switch_curl_slist_free_all(switch_curl_slist_t *list)
Definition: switch_curl.c:41
switch_CURLcode switch_curl_easy_setopt_mime(switch_CURL *curl_handle, switch_curl_mime *mime)
Definition: switch_curl.c:183
switch_status_t switch_curl_process_mime(switch_event_t *event, switch_CURL *curl_handle, switch_curl_mime **mimep)
Definition: switch_curl.c:61
int switch_CURLINFO
Definition: switch_curl.h:39
#define SWITCH_BEGIN_EXTERN_C
Definition: switch.h:42