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 make the library use the file at the path in the MM_PLAYLIST_CONFIG environment variable or at the default path 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 then trying to load each PLP 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).