XMMS2
Macros | Typedefs | Enumerations | Functions
collsync.c File Reference

Manages the synchronization of collections to the database at 10 seconds after the last collections-change. More...

#include <xmmspriv/xmms_collsync.h>
#include <xmmspriv/xmms_utils.h>
#include <xmms/xmms_config.h>
#include <xmms/xmms_ipc.h>
#include <xmms/xmms_log.h>
#include <errno.h>
#include <glib.h>
#include <glib/gstdio.h>
#include "collsync_ipc.c"

Macros

#define XMMS_COLL_SYNC_DELAY   10 * G_TIME_SPAN_SECOND
 

Typedefs

typedef enum xmms_coll_sync_state_t xmms_coll_sync_state_t
 

Enumerations

enum  xmms_coll_sync_state_t { XMMS_COLL_SYNC_STATE_IDLE, XMMS_COLL_SYNC_STATE_DELAYED, XMMS_COLL_SYNC_STATE_IMMEDIATE, XMMS_COLL_SYNC_STATE_SHUTDOWN }
 

Functions

xmms_coll_sync_txmms_coll_sync_init (const gchar *uuid, xmms_coll_dag_t *dag, xmms_playlist_t *playlist)
 Get the collection-to-database-synchronization thread running. More...
 

Detailed Description

Manages the synchronization of collections to the database at 10 seconds after the last collections-change.

Macro Definition Documentation

#define XMMS_COLL_SYNC_DELAY   10 * G_TIME_SPAN_SECOND

Typedef Documentation

Enumeration Type Documentation

Enumerator
XMMS_COLL_SYNC_STATE_IDLE 
XMMS_COLL_SYNC_STATE_DELAYED 
XMMS_COLL_SYNC_STATE_IMMEDIATE 
XMMS_COLL_SYNC_STATE_SHUTDOWN 

Function Documentation

xmms_coll_sync_t* xmms_coll_sync_init ( const gchar *  uuid,
xmms_coll_dag_t dag,
xmms_playlist_t playlist 
)

Get the collection-to-database-synchronization thread running.

Referenced by main().