mme_playlist_set_statement()

Set the SQL statement to create a playlist

Synopsis:

#include <mme/mme.h>

int mme_playlist_set_statement( mme_hdl_t *hdl,
                                uint64_t *plid,
                                const char *sql );

Arguments:

hdl
An MME connection handle.
plid
The ID of the playlist.
sql
A pointer to the SQL statement used to retrieve the file IDs of the files or tracks for the playlist.

Library:

mme

Description:

The function mme_playlist_set_statement() sets the SQL statement to use when retrieving the files to create a playlist.

Events

Blocking and validation

Returns:

0
Success.
-1
An error occurred (errno is set).

Classification:

QNX Neutrino

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

MME_PLAYLIST_*, mme_playlist_close(), mme_playlist_create(), mme_playlist_delete(), mme_playlist_generate_similar(), mme_playlist_hdl_t, mme_playlist_item_get(), mme_playlist_items_count_get(), mme_playlist_open(), mme_playlist_position_set(), mme_playlist_sync(),