Vuo
1.2.2
|
VuoUrlFetch implementation.
Classes | |
struct | VuoUrl_curlBuffer |
A memory buffer, filled by VuoUrl_curlCallback() . More... | |
Functions | |
__attribute__ ((constructor)) | |
Initializes the cURL library. | |
static size_t | VuoUrl_curlCallback (void *contents, size_t size, size_t nmemb, void *userp) |
Reads the contents of the URL into a memory buffer. | |
bool | VuoUrl_fetch (const char *url, void **data, unsigned int *dataLength) |
Receives the data at the specified url . | |
__attribute__ | ( | (constructor) | ) |
Initializes the cURL library.
|
static |
Reads the contents of the URL into a memory buffer.
A callback function for use by curl_easy_setopt()
.
bool VuoUrl_fetch | ( | const char * | url, |
void ** | data, | ||
unsigned int * | dataLength | ||
) |
Receives the data at the specified url
.
The caller is responsible for free()
ing the data.