From 5175ad00e1d648a89efdf8d397b31bf84fd203c8 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Mon, 6 Jan 2003 22:09:16 +0000 Subject: 2003-01-07 Anders Carlsson * dbus/dbus-marshal.c: (_dbus_marshal_string), (_dbus_demarshal_string), (_dbus_marshal_test): * dbus/dbus-marshal.h: Document these functions. * dbus/dbus-message.c: (dbus_message_get_name), (dbus_message_append_int32), (dbus_message_append_uint32), (dbus_message_append_double), (dbus_message_append_string), (dbus_message_append_byte_array): * dbus/dbus-message.h: Add functions for adding message fields of different types. * dbus/dbus-protocol.h: Add the different types. --- dbus/dbus-protocol.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dbus/dbus-protocol.h') diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h index 0e009241..e1a17b54 100644 --- a/dbus/dbus-protocol.h +++ b/dbus/dbus-protocol.h @@ -36,6 +36,17 @@ extern "C" { #define DBUS_LITTLE_ENDIAN ('l') /* LSB first */ #define DBUS_BIG_ENDIAN ('B') /* MSB first */ +/* Data types */ +#define DBUS_TYPE_INVALID 0 +#define DBUS_TYPE_INT32 1 +#define DBUS_TYPE_UINT32 2 +#define DBUS_TYPE_DOUBLE 3 +#define DBUS_TYPE_INT32_ARRAY 4 +#define DBUS_TYPE_UINT32_ARRAY 5 +#define DBUS_TYPE_DOUBLE_ARRAY 6 +#define DBUS_TYPE_BYTE_ARRAY 7 +#define DBUS_TYPE_UTF8_STRING 8 + #ifdef __cplusplus } #endif -- cgit