Warning, file /include/dbus-1.0/dbus/dbus-errors.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
0027 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
0028 #endif
0029
0030 #ifndef DBUS_ERROR_H
0031 #define DBUS_ERROR_H
0032
0033 #include <dbus/dbus-macros.h>
0034 #include <dbus/dbus-types.h>
0035 #include <dbus/dbus-protocol.h>
0036
0037 DBUS_BEGIN_DECLS
0038
0039
0040
0041
0042
0043
0044
0045 typedef struct DBusError DBusError;
0046
0047
0048
0049
0050 struct DBusError
0051 {
0052 const char *name;
0053 const char *message;
0054
0055 unsigned int dummy1 : 1;
0056 unsigned int dummy2 : 1;
0057 unsigned int dummy3 : 1;
0058 unsigned int dummy4 : 1;
0059 unsigned int dummy5 : 1;
0060
0061 void *padding1;
0062 };
0063
0064 #define DBUS_ERROR_INIT { NULL, NULL, TRUE, 0, 0, 0, 0, NULL }
0065
0066 DBUS_EXPORT
0067 void dbus_error_init (DBusError *error);
0068 DBUS_EXPORT
0069 void dbus_error_free (DBusError *error);
0070 DBUS_EXPORT
0071 void dbus_set_error (DBusError *error,
0072 const char *name,
0073 const char *message,
0074 ...) _DBUS_GNUC_PRINTF (3, 4);
0075 DBUS_EXPORT
0076 void dbus_set_error_const (DBusError *error,
0077 const char *name,
0078 const char *message);
0079 DBUS_EXPORT
0080 void dbus_move_error (DBusError *src,
0081 DBusError *dest);
0082 DBUS_EXPORT
0083 dbus_bool_t dbus_error_has_name (const DBusError *error,
0084 const char *name);
0085 DBUS_EXPORT
0086 dbus_bool_t dbus_error_is_set (const DBusError *error);
0087
0088
0089
0090 DBUS_END_DECLS
0091
0092 #endif