00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
00025 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
00026 #endif
00027
00028 #ifndef DBUS_ERROR_H
00029 #define DBUS_ERROR_H
00030
00031 #include <dbus/dbus-macros.h>
00032 #include <dbus/dbus-types.h>
00033
00034 DBUS_BEGIN_DECLS
00035
00042 typedef struct DBusError DBusError;
00043
00047 struct DBusError
00048 {
00049 const char *name;
00050 const char *message;
00052 unsigned int dummy1 : 1;
00053 unsigned int dummy2 : 1;
00054 unsigned int dummy3 : 1;
00055 unsigned int dummy4 : 1;
00056 unsigned int dummy5 : 1;
00058 void *padding1;
00059 };
00060
00061 #define DBUS_ERROR_INIT { NULL, NULL, TRUE, 0, 0, 0, 0, NULL }
00062
00063 void dbus_error_init (DBusError *error);
00064 void dbus_error_free (DBusError *error);
00065 void dbus_set_error (DBusError *error,
00066 const char *name,
00067 const char *message,
00068 ...);
00069 void dbus_set_error_const (DBusError *error,
00070 const char *name,
00071 const char *message);
00072 void dbus_move_error (DBusError *src,
00073 DBusError *dest);
00074 dbus_bool_t dbus_error_has_name (const DBusError *error,
00075 const char *name);
00076 dbus_bool_t dbus_error_is_set (const DBusError *error);
00077
00080 DBUS_END_DECLS
00081
00082 #endif