summaryrefslogtreecommitdiff
path: root/dbus-abi.h
diff options
context:
space:
mode:
Diffstat (limited to 'dbus-abi.h')
-rw-r--r--dbus-abi.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/dbus-abi.h b/dbus-abi.h
new file mode 100644
index 0000000..ed406f1
--- /dev/null
+++ b/dbus-abi.h
@@ -0,0 +1,34 @@
1/*
2 * DBUS ABI
3 *
4 * The following is all dbus information needed in order to compile
5 * a hald-addon.
6 */
7
8/* Structure declarations */
9struct DBusMessage;
10
11/* Allocate 32 bytes for the error structure. */
12struct DBusError {
13 char bytes[32];
14};
15
16/* Define DBus arguments types */
17const int DBUS_TYPE_INVALID;
18const int DBUS_TYPE_INT32 = 'i';
19const int DBUS_TYPE_ARRAY = 'a';
20
21/* Define DBus handler results */
22typedef enum {
23 DBUS_HANDLER_RESULT_HANDLED,
24 DBUS_HANDLER_RESULT_NOT_YET_HANDLED,
25 DBUS_HANDLER_RESULT_NEED_MEMORY
26} DBusHandlerResult;
27
28/* Function declarations */
29struct DBusMessage *
30dbus_message_new_error(struct DBusMessage *reply_to, const char *error_name,
31 const char *error_message);
32struct DBusMessage *
33dbus_message_new_method_return(struct DBusMessage *method_call);
34