Function

GioDBusSignalCallback

Declaration

void
(* GDBusSignalCallback) (
  GDBusConnection* connection,
  const gchar* sender_name,
  const gchar* object_path,
  const gchar* interface_name,
  const gchar* signal_name,
  GVariant* parameters,
  gpointer user_data
)

Description [src]

Signature for callback function used in g_dbus_connection_signal_subscribe().

Available since:2.26

Parameters

connection GDBusConnection
 

A GDBusConnection.

 The data is owned by the caller of the function.
sender_name const gchar*
 

The unique bus name of the sender of the signal, or NULL on a peer-to-peer D-Bus connection.

 The argument can be NULL.
 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
object_path const gchar*
 

The object path that the signal was emitted on.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
interface_name const gchar*
 

The name of the interface.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
signal_name const gchar*
 

The name of the signal.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
parameters GVariant
 

A GVariant tuple with parameters for the signal.

 The data is owned by the caller of the function.
user_data gpointer
 

User data passed when subscribing to the signal.