Function

GioDBusErrorset_dbus_error

Declaration

void
g_dbus_error_set_dbus_error (
  GError** error,
  const gchar* dbus_error_name,
  const gchar* dbus_error_message,
  const gchar* format,
  ...
)

Description

Does nothing if error is NULL. Otherwise sets *error to a new GError created with g_dbus_error_new_for_dbus_error() with dbus_error_message prepend with format (unless NULL).

Available since:2.26

Parameters

error GError
 

A pointer to a GError or NULL.

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

D-Bus error name.

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

D-Bus error message.

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

Printf()-style format to prepend to dbus_error_message or NULL.

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

Arguments for format.