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 the parameter to /.

flags

Must be 0; reserved for future use

Library:

libmd

Description:

Open a metadata-extraction session. 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 non-NULL session handle on success, NULL on failure (errno is set)