IPC
[XMMSServer]

IPC functions for XMMS2 Daemon. More...

Typedefs

typedef struct xmms_ipc_client_St xmms_ipc_client_t
 A IPC client representation.

Functions

void on_config_ipcsocket_change (xmms_object_t *object, xmmsv_t *_data, gpointer udata)
 Gets called when the config property "core.ipcsocket" has changed.
gboolean xmms_ipc_has_pending (guint signalid)
 Checks if someone is waiting for signalid.
void xmms_ipc_broadcast_register (xmms_object_t *object, xmms_ipc_signals_t signalid)
 Register a broadcast signal.
void xmms_ipc_broadcast_unregister (xmms_ipc_signals_t signalid)
 Unregister a broadcast signal.
void xmms_ipc_signal_register (xmms_object_t *object, xmms_ipc_signals_t signalid)
 Register a signal.
void xmms_ipc_signal_unregister (xmms_ipc_signals_t signalid)
 Unregister a signal.
void xmms_ipc_object_register (xmms_ipc_objects_t objectid, xmms_object_t *object)
 Register a object to the IPC core.
void xmms_ipc_object_unregister (xmms_ipc_objects_t objectid)
 Remove a object from the IPC core.
xmms_ipc_txmms_ipc_init (void)
 Initialize IPC.
void xmms_ipc_shutdown (void)
 Disable IPC.
gboolean xmms_ipc_setup_server (const gchar *path)
 Start the server.

Detailed Description

IPC functions for XMMS2 Daemon.


Typedef Documentation

typedef struct xmms_ipc_client_St xmms_ipc_client_t

A IPC client representation.


Function Documentation

void on_config_ipcsocket_change ( xmms_object_t object,
xmmsv_t *  _data,
gpointer  udata 
)

Gets called when the config property "core.ipcsocket" has changed.

Definition at line 495 of file ipc.c.

Referenced by main().

void xmms_ipc_broadcast_register ( xmms_object_t object,
xmms_ipc_signals_t  signalid 
)

Register a broadcast signal.

Definition at line 694 of file ipc.c.

void xmms_ipc_broadcast_unregister ( xmms_ipc_signals_t  signalid  ) 

Unregister a broadcast signal.

Definition at line 709 of file ipc.c.

gboolean xmms_ipc_has_pending ( guint  signalid  ) 

Checks if someone is waiting for signalid.

Definition at line 599 of file ipc.c.

xmms_ipc_t* xmms_ipc_init ( void   ) 

Initialize IPC.

Definition at line 780 of file ipc.c.

Referenced by main().

void xmms_ipc_object_register ( xmms_ipc_objects_t  objectid,
xmms_object_t object 
)

Register a object to the IPC core.

This needs to be done if you want to send commands to that object from the client.

Definition at line 758 of file ipc.c.

void xmms_ipc_object_unregister ( xmms_ipc_objects_t  objectid  ) 

Remove a object from the IPC core.

Definition at line 769 of file ipc.c.

gboolean xmms_ipc_setup_server ( const gchar *  path  ) 

Start the server.

Definition at line 842 of file ipc.c.

Referenced by main(), and on_config_ipcsocket_change().

void xmms_ipc_shutdown ( void   ) 

Disable IPC.

Definition at line 822 of file ipc.c.

Referenced by main(), and on_config_ipcsocket_change().

void xmms_ipc_signal_register ( xmms_object_t object,
xmms_ipc_signals_t  signalid 
)

Register a signal.

Definition at line 726 of file ipc.c.

void xmms_ipc_signal_unregister ( xmms_ipc_signals_t  signalid  ) 

Unregister a signal.

Definition at line 740 of file ipc.c.


Generated on Tue Feb 23 18:14:36 2010 for XMMS2 by  doxygen 1.6.1