mme_setpriorityfolder()

Set a priority folder for synchronization

Synopsis:

#include <mme/mme.h>

int mme_setpriorityfolder( mme_hdl_t *hdl,
                           uint64_t folderid );

Arguments:

hdl
An MME connection handle.
folderid
The ID of the folder to be synchronized first. This ID must match the folderid field in the MME database folders table.

Library:

mme

Description:

The function mme_setpriorityfolder() tells the MME to synchronize the specified folder first. When you call this function, if the MME is in the process of sychronizing a mediastore, it pauses and synchronizes the specified folder first before resuming the rest of the sychronization.

Events

None delivered.

Blocking and validation

This function blocks on qdb. It validates:

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_directed_sync_cancel(), mme_resync_mediastore(), mme_sync_cancel(), mme_sync_directed(), mme_sync_file(), mme_sync_get_msid_status(), mme_sync_get_status()