mmmd_init()

Initialize the library.

Synopsis:

#include <mm/md.h>
int mmmd_init( const char *config )

Arguments:

config

The path to the configuration of the library (may be NULL)

Library:

libmd

Description:

Initialize the library. You must call this function before any other libmd function to initialize the library before using it. This function loads any metadata providers (MDPs) listed in the configuration file into the library. The default path for the configuration file is /etc/mm/mm-md.conf.

The plugin entries in the configuration file must contain dll attributes that provide filenames that match the plugin names. All other plugin attributes are ignored by the library and may be used by the plugins during metadata extraction.

Returns:

0 on success, -1 on error (errno is set)