mme_playlist_items_count_get()

Get the number of items in a playlist

Synopsis:

#include <mme/playlist.h>

int mme_playlist_items_count_get( mme_playlist_hdl_t *hdl,
                                  int *items );

Arguments:

hdl
An playlist connection handle.
items
The number of items in the playlist.

Library:

mme

Description:

The function mme_playlist_items_count_get() gets the number of items in the currently open playlist. This number can be 0, greater than 0, or -1. If the value is -1, the playlist has no fixed length.

Events

None delivered.

Blocking and validation

This function performs no validations, and runs to completion.

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_open(), mme_playlist_position_set(), mme_playlist_set_statement(), mme_playlist_sync()