#ifdef __cplusplus extern "C" { #endif #include #ifndef __SHILLERBEN_REQUESTS__ #define __SHILLERBEN_REQUESTS__ typedef struct GetRequestResult GetRequestResult; struct GetRequestResult { int errorCode; size_t size; size_t capacity; char *data; }; void requestsInit(void); void requestsCleanup(void); GetRequestResult requestsGet(const char* url); size_t _getRequestCb(char *buffer, size_t size, size_t nmemb, GetRequestResult *result); #endif #ifdef __cplusplus } #endif