Added 'Resident' field to ensure that the handler is included in the
[AROS.git] / rom / dbus / include / dbus-errors.h
blobcc9600ad9a30992a494fe5dd6872c4c0a4328487
1 /* -*- mode: C; c-file-style: "gnu" -*- */
2 /* dbus-errors.h Error reporting
4 * Copyright (C) 2002 Red Hat Inc.
5 * Copyright (C) 2003 CodeFactory AB
7 * Licensed under the Academic Free License version 2.1
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #if !defined (DBUS_INSIDE_DBUS_H) && !defined (DBUS_COMPILATION)
25 #error "Only <dbus/dbus.h> can be included directly, this file may disappear or change contents."
26 #endif
28 #ifndef DBUS_ERROR_H
29 #define DBUS_ERROR_H
31 #include <dbus/dbus-macros.h>
32 #include <dbus/dbus-types.h>
34 DBUS_BEGIN_DECLS;
36 typedef struct DBusError DBusError;
38 /**
39 * Object representing an exception.
41 struct DBusError
43 const char *name; /**< error name */
44 const char *message; /**< error message */
46 unsigned int dummy1 : 1; /**< placeholder */
47 unsigned int dummy2 : 1; /**< placeholder */
48 unsigned int dummy3 : 1; /**< placeholder */
49 unsigned int dummy4 : 1; /**< placeholder */
50 unsigned int dummy5 : 1; /**< placeholder */
52 void *padding1; /**< placeholder */
55 void dbus_error_init (DBusError *error);
56 void dbus_error_free (DBusError *error);
57 void dbus_set_error (DBusError *error,
58 const char *name,
59 const char *message,
60 ...);
61 void dbus_set_error_const (DBusError *error,
62 const char *name,
63 const char *message);
64 void dbus_move_error (DBusError *src,
65 DBusError *dest);
66 dbus_bool_t dbus_error_has_name (const DBusError *error,
67 const char *name);
68 dbus_bool_t dbus_error_is_set (const DBusError *error);
70 DBUS_END_DECLS;
72 #endif /* DBUS_ERROR_H */