Functions | |
QUVIcode | quvi_next_host (char **domain, char **formats) |
Next supported video host. | |
char * | quvi_strerror (quvi_t quvi, QUVIcode code) |
Return a string describing the error code. | |
char * | quvi_version (QUVIversion type) |
Return libquvi version. |
QUVIcode quvi_next_host | ( | char ** | domain, | |
char ** | formats | |||
) |
Next supported video host.
Iterate over the list of the supported video hosts.
domain | Pointer to a null-terminated string (e.g. youtube.com) | |
formats | Pointer to a null-terminated string (e.g. flv, delim. '|') |
Example:
char *domain=0, *formats=0; while (quvi_next_host(&domain, &formats) == QUVI_OK) printf("%s\t%s\n", domain, formats);
Return a string describing the error code.
quvi | Handle to a libquvi session | |
code | Error code |
Example:
quvi_t quvi; QUVIcode rc = quvi_init(&quvi); if (rc != QUVI_OK) { fprintf(stderr, "error: %s\n", quvi_strerror(quvi,rc)); exit (rc); } quvi_close(&quvi);
char* quvi_version | ( | QUVIversion | type | ) |
Return libquvi version.
type | Version type |
Example:
puts( quvi_version(QUVI_VERSION_LONG) );