From ffd960fc3e59679c9da9a10e5d8521a1c297eb02 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 2 Jan 2005 04:29:52 +0000 Subject: implement _dbus_type_writer_write_reader() (to copy a block of values) which is the first step toward a sane reimplementation of all that delete/modify and realign nonsense in dbus-message.c --- dbus/dbus-marshal-basic.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'dbus/dbus-marshal-basic.h') diff --git a/dbus/dbus-marshal-basic.h b/dbus/dbus-marshal-basic.h index 9e78aa84..1987dcea 100644 --- a/dbus/dbus-marshal-basic.h +++ b/dbus/dbus-marshal-basic.h @@ -226,6 +226,20 @@ _hack_dbus_type_to_string (int type) #define DBUS_UINT64_FROM_BE(val) (DBUS_UINT64_TO_BE (val)) #endif /* DBUS_HAVE_INT64 */ +typedef union +{ + dbus_int32_t i32; + dbus_uint32_t u32; +#ifdef DBUS_HAVE_INT64 + dbus_int64_t i64; + dbus_uint64_t u64; +#endif + double dbl; + unsigned char byt; + unsigned char boo; + char *str; +} DBusBasicValue; + void _dbus_pack_int32 (dbus_int32_t value, int byte_order, unsigned char *data); -- cgit