Constants for enabling synchronization options, making some function calls blocking, and limiting debugging levels that can be set by clients.
These constants define flags that can be passed to API functions, to set synchronization options such as which passes to perform, whether to apply the synchronization recursively, and other options related to database checks and synchronization behaviour.
#include <mmsync/interface.h>
#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.
#include <mmsync/interface.h>
#define MMSYNC_DEBUG_LOG_EMIT_TO_STDERR (0x01)
Indicates log messages are sent to stderr (in addition to slog2info)
#include <mmsync/mmsyncclient.h>
#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().
#include <mmsync/types.h>
#define MM_SYNC_THREAD_IS_SUSPENDED 0x00000001
Indicate thread for current synchronization operation is suspended.