libquvi
 All Files Functions Typedefs Enumerations Enumerator Macros Groups Pages
Functions
Convenience functions

Functions

QuviError quvi_errcode (quvi_t handle)
const char * quvi_errmsg (quvi_t handle)
void quvi_file_ext_free (quvi_file_ext_t handle)
 Free all of memory used by a file extension handle.
const char * quvi_file_ext_get (quvi_file_ext_t handle)
 Return file extension as a zero-terminated string.
quvi_file_ext_t quvi_file_ext_new (quvi_t handle, const char *s)
 Convert content-type to file extension.
QuviBoolean quvi_ok (quvi_t handle)
 Check if an error occurred.
QuviBoolean quvi_supports (quvi_t handle, const char *url, QuviSupportsMode mode, QuviSupportsType type)
 Check whether the URL is supported.
const char * quvi_version (QuviVersion version)

Detailed Description

Function Documentation

QuviError quvi_errcode ( quvi_t  handle)
Returns
Last library error code
const char* quvi_errmsg ( quvi_t  handle)
@return NULL-terminated error string
Note
Do not attempt to free the returned string
See Also
Getting started
void quvi_file_ext_free ( quvi_file_ext_t  handle)

Free all of memory used by a file extension handle.

Note
If handle is NULL the function simply returns
const char* quvi_file_ext_get ( quvi_file_ext_t  handle)

Return file extension as a zero-terminated string.

Note
Do not attempt to free the returned string
See Also
quvi_file_ext_free
quvi_file_ext_t quvi_file_ext_new ( quvi_t  handle,
const char *  s 
)

Convert content-type to file extension.

Returns
New handle, quvi_file_ext_free it when done using it
Note
  • The result is a guess at best and returned by the util/to_file_ext.lua of libquvi-scripts
  • Use quvi_ok for checking if an error occurred
See Also
quvi_file_ext_free
QuviBoolean quvi_ok ( quvi_t  handle)

Check if an error occurred.

Returns
QUVI_FALSE if an error occurred, otherwise QUVI_TRUE
See Also
Getting started
QuviBoolean quvi_supports ( quvi_t  handle,
const char *  url,
QuviSupportsMode  mode,
QuviSupportsType  type 
)

Check whether the URL is supported.

Check if any of the scripts accepts the URL. Both offline and online checking is supported.

Note

Type may be a combination.

quvi_supports(q, URL, QUVI_SUPPORTS_OFFLINE,
QUVI_SUPPORTS_TYPE_PLAYLIST | QUVI_SUPPORTS_TYPE_MEDIA);
const char* quvi_version ( QuviVersion  version)
@return NULL-terminated version string
Note
Do not attempt to free the returned string