Initializing
[Functions]

Modules

 Releasing

Functions

QUVIcode quvi_init (quvi_t *quvi)
 Start a new libquvi session.

Function Documentation

QUVIcode quvi_init ( quvi_t quvi  ) 

Start a new libquvi session.

Initializes a new session handle and locates the website scripts used to parse the video page links. The library searches the following paths in the following order:

  • $QUVI_BASEDIR defined path
  • Current working directory (./lua/website/)
  • $HOME./quvi/
  • $HOME/.config/quvi/
  • $HOME/.local/share/quvi/
  • --datadir=DIR (and pkgdatadir) specified with configure (script)
    • These directories are typically $prefix/share/ and $prefix/share/quvi/
Parameters:
quvi Pointer to a new handle
Note:
Returns:
Non-zero if an error occurred
See also:
quvi_close

Example:

 #include <quvi/quvi.h>
 ...
 quvi_t quvi;
 quvi_init(&quvi);
Examples:
quvi.c, and simple.c.
 All Files Functions Typedefs Enumerations Enumerator Defines

Generated on 5 Sep 2010 by  doxygen 1.6.1