File indexing completed on 2026-09-13 09:11:36
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef __G_DBUS_ERROR_H__
0024 #define __G_DBUS_ERROR_H__
0025
0026 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0027 #error "Only <gio/gio.h> can be included directly."
0028 #endif
0029
0030 #include <gio/giotypes.h>
0031
0032 G_BEGIN_DECLS
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048
0049 #define G_DBUS_ERROR g_dbus_error_quark()
0050
0051 GIO_AVAILABLE_IN_ALL
0052 GQuark g_dbus_error_quark (void);
0053
0054
0055 GIO_AVAILABLE_IN_ALL
0056 gboolean g_dbus_error_is_remote_error (const GError *error);
0057 GIO_AVAILABLE_IN_ALL
0058 gchar *g_dbus_error_get_remote_error (const GError *error);
0059 GIO_AVAILABLE_IN_ALL
0060 gboolean g_dbus_error_strip_remote_error (GError *error);
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071 struct _GDBusErrorEntry
0072 {
0073 gint error_code;
0074 const gchar *dbus_error_name;
0075 };
0076
0077 GIO_AVAILABLE_IN_ALL
0078 gboolean g_dbus_error_register_error (GQuark error_domain,
0079 gint error_code,
0080 const gchar *dbus_error_name);
0081 GIO_AVAILABLE_IN_ALL
0082 gboolean g_dbus_error_unregister_error (GQuark error_domain,
0083 gint error_code,
0084 const gchar *dbus_error_name);
0085 GIO_AVAILABLE_IN_ALL
0086 void g_dbus_error_register_error_domain (const gchar *error_domain_quark_name,
0087 volatile gsize *quark_volatile,
0088 const GDBusErrorEntry *entries,
0089 guint num_entries);
0090
0091
0092 GIO_AVAILABLE_IN_ALL
0093 GError *g_dbus_error_new_for_dbus_error (const gchar *dbus_error_name,
0094 const gchar *dbus_error_message);
0095 GIO_AVAILABLE_IN_ALL
0096 void g_dbus_error_set_dbus_error (GError **error,
0097 const gchar *dbus_error_name,
0098 const gchar *dbus_error_message,
0099 const gchar *format,
0100 ...) G_GNUC_PRINTF(4, 5);
0101 GIO_AVAILABLE_IN_ALL
0102 void g_dbus_error_set_dbus_error_valist (GError **error,
0103 const gchar *dbus_error_name,
0104 const gchar *dbus_error_message,
0105 const gchar *format,
0106 va_list var_args) G_GNUC_PRINTF(4, 0);
0107 GIO_AVAILABLE_IN_ALL
0108 gchar *g_dbus_error_encode_gerror (const GError *error);
0109
0110 G_END_DECLS
0111
0112 #endif