Misc. utility functions
[Functions]

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.

Function Documentation

QUVIcode quvi_next_host ( char **  domain,
char **  formats 
)

Next supported video host.

Iterate over the list of the supported video hosts.

Parameters:
domain Pointer to a null-terminated string (e.g. youtube.com)
formats Pointer to a null-terminated string (e.g. flv, delim. '|')
Returns:
Non-zero if end of list was reached (QUVI_LAST) or an error occurred
Warning:
Do not attempt to free the memory returned by this function

Example:

 char *domain=0, *formats=0;
 while (quvi_next_host(&domain, &formats) == QUVI_OK)
   printf("%s\t%s\n", domain, formats);
Examples:
quvi.c.
char* quvi_strerror ( quvi_t  quvi,
QUVIcode  code 
)

Return a string describing the error code.

Parameters:
quvi Handle to a libquvi session
code Error code
Returns:
Null-terminated string
Warning:
Do not attempt to free the memory returned by this function

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);
Examples:
quvi.c.
char* quvi_version ( QUVIversion  type  ) 

Return libquvi version.

Parameters:
type Version type
Returns:
Null-terminated string
Warning:
Do not attempt to free the memory returned by this function

Example:

Examples:
quvi.c.
 All Files Functions Typedefs Enumerations Enumerator Defines
Generated by  doxygen 1.6.2-20100208