Function

GioDBusErrorregister_error_domain

Declaration

void
g_dbus_error_register_error_domain (
  const gchar* error_domain_quark_name,
  volatile gsize* quark_volatile,
  const GDBusErrorEntry* entries,
  guint num_entries
)

Description

Helper function for associating a GError error domain with D-Bus error names.

While quark_volatile has a volatile qualifier, this is a historical artifact and the argument passed to it should not be volatile.

Available since:2.26

Parameters

error_domain_quark_name const gchar*
 

The error domain name.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
quark_volatile volatile gsize*
 

A pointer where to store the GQuark.

 The data is owned by the caller of the function.
entries An array of GDBusErrorEntry
 

A pointer to num_entries GDBusErrorEntry struct items.

 The length of the array is specified in the num_entries argument.
 The data is owned by the caller of the function.
num_entries guint
 

Number of items to register.