Vuo
0.7.0
|
VuoUrl 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. | |
static bool | VuoUrl_urlContainsScheme (const char *url) |
Returns a boolean indicating whether the input url contains a scheme. | |
static bool | VuoUrl_urlIsAbsoluteFilePath (const char *url) |
Returns a boolean indicating whether the input url is an absolute file path. | |
VuoText | VuoUrl_normalize (const VuoText url) |
Resolves url (which could be an absolute URL, an absolute Unix file path, or a relative Unix file path) into an absolure URL. | |
bool | VuoUrl_get (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_get | ( | const char * | url, |
void ** | data, | ||
unsigned int * | dataLength | ||
) |
Receives the data at the specified url
.
Resolves url
(which could be an absolute URL, an absolute Unix file path, or a relative Unix file path) into an absolure URL.
|
static |
Returns a boolean indicating whether the input url
contains a scheme.
|
static |
Returns a boolean indicating whether the input url
is an absolute file path.