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. 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. 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 but this path can be overridden, as explained in the config argument.

The plugin entries in the configuration file must contain dll settings that provide filenames matching the plugin names. All other plugin settings are ignored by the data processing and plugin management layers but may be used by the plugins themselves during metadata extraction.

Returns:

0
Success.
>0
An error occurred (errno is set).