diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-13 03:05:38 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-13 03:05:38 +0100 |
| commit | 49680952052582ff3dd11bc413b6287b65063b2a (patch) | |
| tree | a1c1f2dce3ad12f6464088f235d631e94b9af616 /dbus-abi.h | |
Initial GIT version: hal-applesmc-0.14
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'dbus-abi.h')
| -rw-r--r-- | dbus-abi.h | 34 |
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 */ | ||
| 9 | struct DBusMessage; | ||
| 10 | |||
| 11 | /* Allocate 32 bytes for the error structure. */ | ||
| 12 | struct DBusError { | ||
| 13 | char bytes[32]; | ||
| 14 | }; | ||
| 15 | |||
| 16 | /* Define DBus arguments types */ | ||
| 17 | const int DBUS_TYPE_INVALID; | ||
| 18 | const int DBUS_TYPE_INT32 = 'i'; | ||
| 19 | const int DBUS_TYPE_ARRAY = 'a'; | ||
| 20 | |||
| 21 | /* Define DBus handler results */ | ||
| 22 | typedef 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 */ | ||
| 29 | struct DBusMessage * | ||
| 30 | dbus_message_new_error(struct DBusMessage *reply_to, const char *error_name, | ||
| 31 | const char *error_message); | ||
| 32 | struct DBusMessage * | ||
| 33 | dbus_message_new_method_return(struct DBusMessage *method_call); | ||
| 34 | |||
