aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbus-abi.h
blob: ed406f1e044eee364533265f16acad9c9d01de87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);