Functions | |
DBusMessageHandler * | dbus_message_handler_new (DBusHandleMessageFunction function, void *user_data, DBusFreeFunction free_user_data) |
Creates a new message handler. More... | |
DBusMessageHandler * | dbus_message_handler_ref (DBusMessageHandler *handler) |
Increments the reference count on a message handler. More... | |
void | dbus_message_handler_unref (DBusMessageHandler *handler) |
Decrements the reference count on a message handler, freeing the handler if the count reaches 0. More... | |
void * | dbus_message_handler_get_data (DBusMessageHandler *handler) |
Gets the user data for the handler (the same user data passed to the handler function.). More... | |
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). More... | |
void | dbus_message_handler_set_function (DBusMessageHandler *handler, DBusHandleMessageFunction function) |
Sets the handler function. More... |
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 250 of file dbus-message-handler.c. References user_data. |
|
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 connections, free_user_data, function, refcount, user_data, and DBusAtomic::value. |
|
Increments the reference count on a message handler.
Definition at line 195 of file dbus-message-handler.c. References refcount. |
|
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 272 of file dbus-message-handler.c. References free_user_data, and user_data. |
|
Sets the handler function. Call dbus_message_handler_set_data() to set the user data for the function.
Definition at line 302 of file dbus-message-handler.c. References function. |
|
Decrements the reference count on a message handler, freeing the handler if the count reaches 0.
Definition at line 211 of file dbus-message-handler.c. References connections, DBusList::data, free_user_data, refcount, and user_data. |