aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbus-abi.h
diff options
context:
space:
mode:
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 @@
+/*
+ * DBUS ABI
+ *
+ * The following is all dbus information needed in order to compile
+ * a hald-addon.
+ */
+
+/* Structure declarations */
+struct DBusMessage;
+
+/* Allocate 32 bytes for the error structure. */
+struct DBusError {
+ char bytes[32];
+};
+
+/* Define DBus arguments types */
+const int DBUS_TYPE_INVALID;
+const int DBUS_TYPE_INT32 = 'i';
+const int DBUS_TYPE_ARRAY = 'a';
+
+/* Define DBus handler results */
+typedef enum {
+ DBUS_HANDLER_RESULT_HANDLED,
+ DBUS_HANDLER_RESULT_NOT_YET_HANDLED,
+ DBUS_HANDLER_RESULT_NEED_MEMORY
+} DBusHandlerResult;
+
+/* Function declarations */
+struct DBusMessage *
+dbus_message_new_error(struct DBusMessage *reply_to, const char *error_name,
+ const char *error_message);
+struct DBusMessage *
+dbus_message_new_method_return(struct DBusMessage *method_call);
+