Defines in config.h

Preprocessor macro definitions for the config.h header file in the mmsyncclient library..

Defines:

#include <mmsync/config.h>

General configuration settings

#define CONFIG_DEFAULT_DEVICE_PATH "/dev/mmsync"

The default mountpoint of the mm-sync resource manager API. All control contexts are created under this path.

#define CONFIG_DEF_CONFIG_VERBOSITY_LEVEL 2 

The default verbosity level for mm-sync initialization log messages.

Event settings

#define CONFIG_NTFY_QUEUE_MAX (80) 

The maximum number of event notifications that can be queued at a time.

#define CONFIG_DEF_SYNC_FOLDER_EVENTS 2

The default emission control of folder synchronization events, which is trimonly.

Thread resource management settings

#define CONFIG_DEFAULT_SYNC_BUFFER (250) 

The default maximum number of synchronization records that can be stored in the buffers shared between the foreground and background synchronization threads.

#define CONFIG_DEFAULT_SYNC_THREADS_MAX (8)

The default maximum number of foreground synchronization threads permitted to run at a time.

#define CONFIG_DEF_SYNC_THREAD_PRIORITY 0

The default synchronization thread priority (0 means the priority is inherited from the main mm-sync thread).

#define CONFIG_DEF_MERGE_THREAD_PRIORITY_ADJ 1

The default synchronization merge thread priority adjustment. This value is added to the original synchronization thread priority, so it's a relative value.

Limits on files that get synchronized

#define CONFIG_DEFAULT_SYNC_MAX_RECURSE (8)

The default maximum directory depth to recursively visit when synchronizing a mediastore. This setting also applies to priority folders.

#define CONFIG_MAX_MAXMEDIASTOREITEMS (100)

The maximum number of items that can be read from a mediastore. This limit excludes "." and ".." filesystem entries but includes any items whose filenames match the pattern of names for files to skip for synchronization.

#define CONFIG_DEF_MEDIAITEMS_MAXITEMS (0)

The default number of media items allowed in a folder before the folder is determined to not contain media items (0 means unlimited).

#define CONFIG_DEF_NONMEDIAITEMS_MAXITEMS (0)

The default number of nonmedia items allowed in a folder before the folder is determined to not contain media items (0 means unlimited).

#define CONFIG_DEF_NONMEDIAITEMS_PRESCANLIMIT (0) 

The default number of items to pre-scan for nonmedia items when a maximum number of acceptable items is set (0 means unlimited).

Limits on lengths of string parameters

#define CONFIG_MAX_PATH 4000 

The maximum allowable length of any filename (including the path) given to mm-sync as a synchronization parameter.

#define CONFIG_MAX_SQL 8000 

The maximum size of a message that can be sent to the database resource manager; the message could be an SQL statement or something else.

#define CONFIG_MAX_EXTENSION_LENGTH (30) 

The maximum length of a file extension that can be specified in any filename given to mm-sync.

#define CONFIG_MAX_EXTENSIONS 200 

The maximum number of distinct file extensions that can be synchronized. This setting is applied separately for the extensions of media files and for the extensions of playlists.

#define CONFIG_MAX_MS_NAME_LEN (128)

The maximum allowable length for a volume name referring to an attached mediastore. The length of the volume name passed in to mm-sync by the client can't exceed the configured length limit, or the synchronization operation fails.

#define CONFIG_MAX_MSSNAME_LENGTH (20) 

The maximum length of a mediastore synchronizer name that can be given to mm-sync in the extended options for mm_sync_start().

Limits on external artwork filenames

#define CONFIG_MAX_ARTWORK_FILE_EXTENSION_LENGTH (8) 

The maximum length of a filename extension that an image file can have for it to be recognized as a source of external artwork. Used by the external art metadata plugin for retrieving cover art from Gracenote.

Database settings

#define CONFIG_DEF_MAX_DATABASE_SIZE 0 

The default maximum size for the database, in kilobytes. If the database exceeds this size, the synchronization aborts. If 0, there is no maximum database size.

#define CONFIG_DEF_SYNC_INTERVAL 0 

After synchronizing this many files, mm-sync will check the database size. Larger values mean faster synchronizations but also that the maximum database size can be exceeded by a greater margin before the synchronization aborts. If 0, mm-sync won't check the database size during a synchronization.

#define CONFIG_DEF_DATABASE_TIMEOUT_MS (0) 

The default timeout value for database accesses, in milliseconds.

#define CONFIG_UTF8_CHAR_SIZE (4)

Maximum metadata string lengths are specified in 4-byte characters. This constant is used by mm-sync for copying metadata to the database.

#define CONFIG_MAX_METADATA_CHARS (256)

The mm-sync limit on the maximum size of metadata strings that get written to the database. This maximum size is the number of characters in the metadata strings copied from metadata providers into database fields.

Library:

mmsyncclient