summaryrefslogtreecommitdiff
path: root/src/dbus-abi.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-11-03 00:49:34 +0100
committerHenrik Rydberg <rydberg@euromail.se>2008-11-03 00:49:34 +0100
commit70ba2dbf0f49a4f8d1caa2bbed97c8c2358c6fb6 (patch)
treee1697049bc32fd47b1e639969b4ff752689c92a8 /src/dbus-abi.h
Initial version: adding some files
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/dbus-abi.h')
-rw-r--r--src/dbus-abi.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/dbus-abi.h b/src/dbus-abi.h
new file mode 100644
index 0000000..ed406f1
--- /dev/null
+++ b/src/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