1 #ifndef __ETVDB_PRIVATE_H__ 2 #define __ETVDB_PRIVATE_H__ 11 #define UNUSED __attribute__((__unused__)) 14 #define CRIT(...) EINA_LOG_DOM_CRIT(_etvdb_log_dom, __VA_ARGS__) 15 #define ERR(...) EINA_LOG_DOM_ERR(_etvdb_log_dom, __VA_ARGS__) 16 #define INFO(...) EINA_LOG_DOM_INFO(_etvdb_log_dom, __VA_ARGS__) 17 #define WARN(...) EINA_LOG_DOM_WARN(_etvdb_log_dom, __VA_ARGS__) 18 #define DBG(...) EINA_LOG_DOM_DBG(_etvdb_log_dom, __VA_ARGS__) 20 #define HTML2UTF(x, y) decode_html_entities_utf8(x, y) 24 #define MEM2STR(dst, src, slen) \ 25 memcpy(dst, src, slen); \ 30 #define TAGCMP(s1, s2) \ 31 memcmp(s1">", s2, strlen(s1">")) 36 #define CURL_XML_DL_MEM(dl, uri) \ 37 dl.data = malloc(1); \ 39 curl_easy_setopt(curl_handle, CURLOPT_URL, uri); \ 40 curl_easy_setopt(curl_handle, CURLOPT_TIMEOUT, 60); \ 41 curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, _dl_to_mem_cb); \ 42 curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *)&dl); \ 43 if (curl_easy_perform(curl_handle)) 46 #define ETVDB_API_KEY "A34C5A0CAF0F3EFD" 47 #define TVDB_API_URI "http://thetvdb.com/api" 49 #ifndef DATA_LANG_FILE_XML 50 #define DATA_LANG_FILE_XML "../data/languages.xml" 61 int _xml_count, _xml_depth, _xml_sibling;
76 size_t _dl_to_mem_cb(
char *ptr,
size_t size,
size_t nmemb,
void *userdata);
Series * s
Definition: etvdb_private.h:72
Definition: etvdb_private.h:65
char * data
Definition: etvdb_private.h:67
Eina_List * list
Definition: etvdb_private.h:73
Definition: etvdb_private.h:71
This is the public etvdb API.
size_t len
Definition: etvdb_private.h:66