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: PlumaMessageCallback

Function to be called when message method at object_path is sent.

userdata

Type: gpointer

Userdata to use for the callback.

The argument can be NULL.
The data is owned by the caller of the method.
destroy_data

Type: GDestroyNotify

Function to evoke with userdata as argument when userdata needs to be freed.

Return value

Type: guint

The callback identifier.