mme_getscanmode()

Get the scan mode for a control context

Synopsis:

#include <mme/mme.h>

int mme_getscanmode( mme_hdl_t *hdl,
                     uint64_t *time );

Arguments:

hdl
An MME connection handle.
time
A pointer to a location where the function can store the scan mode setting (in milliseconds).

Library:

mme

Description:

The function mme_getscanmode() gets the scan mode setting for a control context. This setting is the number of milliseconds of a track that the MME plays in scan mode before skipping to the next track in the tracklist.

Events

None delivered.

Blocking and validation

This function blocks on control contexts. If mme_getscanmode() is called and another function is called before mme_getscanmode() returns, the second function blocks on io-media until mme_getscanmode() returns. If there are no other pending calls, mme_getscanmode() returns without blocking on io-media.

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_getrandom(), mme_getrepeat(), mme_setrandom() mme_setrepeat(), mme_setscanmode()