mmmd_session_open()

Open a metadata-extraction session

Synopsis:

#include <mm/md.h>
mmmd_hdl_t* mmmd_session_open( const char *mediastore, 
                               uint32_t flags )

Arguments:

mediastore
The URL or mountpoint of the mediastore to associate with the session. The syntax of this argument depends on the mediastore type. For example, to read metadata from a USB stick, set this parameter to /fs/usb0/ (or something similar). To read metadata from files stored in the root directory of your local filesystem, set this parameter to /.
flags
Must be 0; reserved for future use.

Library:

libmd

Description:

This function opens a metadata-extraction session with libmd. The session is associated with the media device named in mediastore, meaning that you can use it to read metadata from items stored on that device.

Returns:

A valid, non-null session handle
Success.
NULL
Failure (errno is set).