mmmd_init()

Initialize the library

Synopsis:

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

Arguments:

config
The path of the configuration file. Setting this argument allows you to use a nondefault configuration file. When given a NULL path, the library searches the path given in the MM_MD_CONFIG environment variable or if this variable isn't defined, the default path of /etc/mm/mm-md.conf.

Library:

libmd

Description:

This function initializes the library by loading any metadata providers (MDPs) listed in the configuration file. You must call this function before any other libmd function to initialize the library before using it.

When reading the configuration file, the libmd library reads the dll attributes that provide the filenames of the plugins but ignores all other attributes, which may be used by the plugins later during metadata extraction.

Returns:

0 Success.

-1 An error occurred (errno is set).