mmplaylist_init()

Initialize the library

Synopsis:

#include <mm/mmplaylist.h>
int mmplaylist_init(const char *config)

Arguments:

config
The path of the configuration file to use. Set this parameter to NULL to use the file specified in the MM_PLAYLIST environment variable, or the default file if that variable isn't defined.

Library:

libmmplaylist

Description:

This function initializes the playlist library by loading the character converter library, parsing the configuration file, and trying to load each plugin named in the configuration file. You must call this function once and it must be the first function you call.

Returns:

0 Success. This value is equivalent to the mmplaylist_ok error code.

>0 An mmplaylist_error_type_t constant indicating the error that occurred (call mmplaylist_last_error_get() for details).