#ifdef DEBUG #ifdef ANDROID #include #else #include #endif // ANDROID #endif // DEBUG #include #include #include "rtclient.h" static CURL *handle = NULL; bool rtclient_init() { curl_global_init(CURL_GLOBAL_SSL); handle = curl_easy_init(); if (handle) { curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1L); #ifdef DEBUG curl_easy_setopt(handle, CURLOPT_VERBOSE, 1L); #endif } return (bool)handle; } void rtclient_cleanup() { if (handle) curl_easy_cleanup(handle); curl_global_cleanup(); }