diff options
author | Havoc Pennington <hp@redhat.com> | 2005-01-02 04:29:52 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2005-01-02 04:29:52 +0000 |
commit | ffd960fc3e59679c9da9a10e5d8521a1c297eb02 (patch) | |
tree | d454dea7cca95f5b7c266ab6e2b6cec6628d1e4a /dbus/dbus-marshal-basic.h | |
parent | df652bd9a1f170b9a1af193b0b94136b7be690db (diff) |
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
Diffstat (limited to 'dbus/dbus-marshal-basic.h')
-rw-r--r-- | dbus/dbus-marshal-basic.h | 14 |
1 files changed, 14 insertions, 0 deletions
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); |