XMMS2
|
Object representation in XMMS server. More...
Data Structures | |
struct | xmms_object_St |
Functions | |
void | xmms_object_cleanup (xmms_object_t *object) |
Cleanup all the resources for the object. More... | |
void | xmms_object_connect (xmms_object_t *object, guint32 signalid, xmms_object_handler_t handler, gpointer userdata) |
Connect to a signal that is emitted by this object. More... | |
void | xmms_object_disconnect (xmms_object_t *object, guint32 signalid, xmms_object_handler_t handler, gpointer userdata) |
Disconnect from a signal. More... | |
void | xmms_object_emit (xmms_object_t *object, guint32 signalid, xmmsv_t *data) |
Emit a signal and thus call all the handlers that are connected. More... | |
void | xmms_object_cmd_arg_init (xmms_object_cmd_arg_t *arg) |
Initialize a command argument. More... | |
void | xmms_object_cmd_add (xmms_object_t *object, guint cmdid, const xmms_object_cmd_func_t func) |
Add a command that could be called from the client API to a object. More... | |
void | xmms_object_cmd_call (xmms_object_t *object, guint cmdid, xmms_object_cmd_arg_t *arg) |
Call a command with argument. More... | |
xmmsv_t * | xmms_convert_and_kill_string (gchar *str) |
xmmsv_t * | xmms_convert_and_kill_list (GList *list) |
xmmsv_t * | xmms_convert_and_kill_bin (GString *gs) |
int | xmms_bin_to_gstring (xmmsv_t *value, GString **gs) |
int | dummy_identity (xmmsv_t *value, xmmsv_t **arg) |
Object representation in XMMS server.
A object can be used to emit signals.
int xmms_bin_to_gstring | ( | xmmsv_t * | value, |
GString ** | gs | ||
) |
xmmsv_t* xmms_convert_and_kill_bin | ( | GString * | gs | ) |
xmmsv_t* xmms_convert_and_kill_list | ( | GList * | list | ) |
xmmsv_t * xmms_convert_and_kill_string | ( | gchar * | str | ) |
void xmms_object_cleanup | ( | xmms_object_t * | object | ) |
Cleanup all the resources for the object.
Referenced by xmms_object_unref().
void xmms_object_cmd_add | ( | xmms_object_t * | object, |
guint | cmdid, | ||
const xmms_object_cmd_func_t | func | ||
) |
Add a command that could be called from the client API to a object.
object | The object that should have the method. |
cmdid | A command id. |
desc | A command description. |
void xmms_object_cmd_arg_init | ( | xmms_object_cmd_arg_t * | arg | ) |
Initialize a command argument.
void xmms_object_cmd_call | ( | xmms_object_t * | object, |
guint | cmdid, | ||
xmms_object_cmd_arg_t * | arg | ||
) |
Call a command with argument.
void xmms_object_connect | ( | xmms_object_t * | object, |
guint32 | signalid, | ||
xmms_object_handler_t | handler, | ||
gpointer | userdata | ||
) |
Connect to a signal that is emitted by this object.
You can connect many handlers to the same signal as long as the handler address is unique.
object | the object that will emit the signal |
signalid | the signalid to connect to |
handler | the Callback function to be called when signal is emited. |
userdata | data to the callback function |
Referenced by xmms_coll_sync_init(), xmms_config_property_callback_set(), xmms_courier_init(), xmms_ipc_broadcast_register(), xmms_ipc_signal_register(), xmms_mediainfo_reader_start(), xmms_playlist_init(), and xmms_playlist_updater_init().
void xmms_object_disconnect | ( | xmms_object_t * | object, |
guint32 | signalid, | ||
xmms_object_handler_t | handler, | ||
gpointer | userdata | ||
) |
Disconnect from a signal.
Referenced by xmms_config_property_callback_remove(), xmms_ipc_broadcast_unregister(), and xmms_ipc_signal_unregister().
void xmms_object_emit | ( | xmms_object_t * | object, |
guint32 | signalid, | ||
xmmsv_t * | data | ||
) |
Emit a signal and thus call all the handlers that are connected.
object | the object to signal on. |
signalid | the signalid to emit |
data | the data that should be sent to the handler. |
Referenced by xmms_collection_changed_msg_send(), and xmms_config_property_set_data().