Typedefs | |
typedef DBusMessageHandler | DBusMessageHandler |
Opaque data type representing a message handler. | |
Functions | |
DBusMessageHandler * | dbus_message_handler_new (DBusHandleMessageFunction function, void *user_data, DBusFreeFunction free_user_data) |
Creates a new message handler. | |
void | dbus_message_handler_ref (DBusMessageHandler *handler) |
Increments the reference count on a message handler. | |
void | dbus_message_handler_unref (DBusMessageHandler *handler) |
Decrements the reference count on a message handler, freeing the handler if the count reaches 0. | |
void * | dbus_message_handler_get_data (DBusMessageHandler *handler) |
Gets the user data for the handler (the same user data passed to the handler function.). | |
void | dbus_message_handler_set_data (DBusMessageHandler *handler, void *user_data, DBusFreeFunction free_user_data) |
Sets the user data for the handler (the same user data to be passed to the handler function). | |
void | dbus_message_handler_set_function (DBusMessageHandler *handler, DBusHandleMessageFunction function) |
Sets the handler function. |
A DBusMessageHandler is an object that can send and receive messages. Typically the handler is registered with one or more DBusConnection objects and processes some types of messages received from the connection.
|
Gets the user data for the handler (the same user data passed to the handler function.).
Definition at line 247 of file dbus-message-handler.c. References _DBUS_LOCK, and _DBUS_UNLOCK. |
|
Creates a new message handler. The handler function may be NULL for a no-op handler or a handler to be assigned a function later.
Definition at line 168 of file dbus-message-handler.c. References dbus_new, and NULL. |
|
Increments the reference count on a message handler.
Definition at line 194 of file dbus-message-handler.c. References _dbus_atomic_inc(). Referenced by dbus_connection_send_with_reply(). |
|
Sets the user data for the handler (the same user data to be passed to the handler function). Frees any previously-existing user data with the previous free_user_data function.
Definition at line 269 of file dbus-message-handler.c. References _DBUS_LOCK, _DBUS_UNLOCK, and DBusFreeFunction. |
|
Sets the handler function. Call dbus_message_handler_set_data() to set the user data for the function.
Definition at line 299 of file dbus-message-handler.c. References _DBUS_LOCK, and _DBUS_UNLOCK. |
|
Decrements the reference count on a message handler, freeing the handler if the count reaches 0.
Definition at line 208 of file dbus-message-handler.c. References _dbus_atomic_dec(), _dbus_connection_handler_destroyed_locked(), _dbus_list_clear(), _dbus_list_get_first_link(), _dbus_list_get_next_link, DBusList::data, dbus_bool_t, dbus_free(), and NULL. |