Migrate http context struct into the AsyncIO struct; streamline other structs.
[citadel.git] / citadel / modules / eventclient / serv_curl.h
index 7b65d8eb4d0ae1bc4b7c8976516549477c7bfa37..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,34 +0,0 @@
-#include <curl/curl.h>
-
-
-typedef struct _evcurl_request_data 
-{
-       CURL *chnd;
-       char errdesc[CURL_ERROR_SIZE];
-       int attached;
-       char* PlainPostData;
-       long PlainPostDataLen;
-       StrBuf *PostData;
-       StrBuf *ReplyData;
-       ParsedURL *URL;
-       struct curl_slist * headers;
-} evcurl_request_data;
-
-
-
-
-
-#define OPT(s, v) \
-       do { \
-               sta = curl_easy_setopt(chnd, (CURLOPT_##s), (v)); \
-               if (sta)  {                                             \
-                       CtdlLogPrintf(CTDL_ERR, "error setting option " #s " on curl handle: %s", curl_easy_strerror(sta)); \
-       } } while (0)
-
-
-int evcurl_init(evcurl_request_data *handle, 
-               void *CustomData, 
-               const char* Desc,
-               int CallBack);
-
-void evcurl_handle_start(evcurl_request_data *handle);