Method
PlumaMessageBusconnect
Declaration [src]
guint
pluma_message_bus_connect (
PlumaMessageBus* bus,
const gchar* object_path,
const gchar* method,
PlumaMessageCallback callback,
gpointer userdata,
GDestroyNotify destroy_data
)
Description [src]
Connect a callback handler to be evoked when message method at object_path
is sent over the bus.
Parameters
object_path-
Type:
const gchar*The object path.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. method-
Type:
const gchar*The method.
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. callback-
Type:
PlumaMessageCallbackFunction to be called when message
methodatobject_pathis sent. userdata-
Type:
gpointerUserdata to use for the callback.
The argument can be NULL.The data is owned by the caller of the method. destroy_data-
Type:
GDestroyNotifyFunction to evoke with
userdataas argument whenuserdataneeds to be freed.