Client interface constants

Constants for enabling synchronization options, making some function calls blocking, and limiting debugging levels that can be set by clients

Flags for enabling synchronization options:

Synopsis:

#include <mmsync/interface.h>

Defines:

#define MMSYNC_OPTION_PASS_FILES (0x00000001)
Perform files pass of synchronization.
#define MMSYNC_OPTION_PASS_METADATA (0x00000002)
Perform metadata pass of synchronization.
#define MMSYNC_OPTION_PASS_PLAYLISTS (0x00000004)
Perform playlist pass of synchronization.
#define MMSYNC_OPTION_PASS_ALL (MMSYNC_OPTION_PASS_FILES + \ MMSYNC_OPTION_PASS_METADATA + \ MMSYNC_OPTION_PASS_PLAYLISTS)
Perform all three passes of synchronization.
#define MMSYNC_OPTION_REPAIR (0x00000400)
Repair database inconsistencies in folder information.
#define MMSYNC_OPTION_VERIFY (0x00000800)
Verify data consistency in folder information.
#define MMSYNC_OPTION_CANCEL_CURRENT (0x00002000)
Cancel any ongoing synchronization when a new one is started.
#define MMSYNC_OPTION_RECURSIVE (0x00004000)
Synchronize contents of subfolders within the folder named in the path.
#define MMSYNC_OPTION_SKIPNONMEDIACHECK (0x00010000)
Skip check of nonmedia files.

Debugging flags

Synopsis:

#include <mmsync/interface.h>

Defines:

#define MMSYNC_DEBUG_LOG_EMIT_TO_STDERR (0x01)
Indicates log messages are sent to stderr (in addition to slog).

Controls for blocking on function calls and for limiting verbosity and debugging:

Synopsis:

#include <mmsync/mmsyncclient.h>

Defines:

#define MM_SYNC_SUSPEND_FLAGS_WAIT 0x00000001
Force mm_sync_suspend() to block until synchronization thread is suspended.
#define MMSYNC_MAX_VERBOSE 10
Restrict verbosity setting for mm_sync_debug_set() to maximum of 10.
#define MMSYNC_MAX_DEBUG 0xff
Allow unlimited debugging setting for mm_sync_debug_set().

Flag for indicating synchronization thread suspension:

Synopsis:

#include <mmsync/types.h>

Defines:

#define MM_SYNC_THREAD_IS_SUSPENDED 0x00000001
Indicate current synchronization operation has a suspended thread.

Library:

mmsyncclient