From f3729626de0093762c9d00a8d02db9c96fbd5bd2 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Wed, 25 Dec 2002 22:58:50 +0000 Subject: 2002-12-26 Anders Carlsson * dbus/dbus-marshal.c: (_dbus_marshal_string), (_dbus_demarshal_double), (_dbus_demarshal_int32), (_dbus_demarshal_uint32), (_dbus_demarshal_string), (_dbus_marshal_test): * dbus/dbus-marshal.h: Add string marshal functions and have the demarshal functions return the new position. --- dbus/dbus-marshal.h | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'dbus/dbus-marshal.h') diff --git a/dbus/dbus-marshal.h b/dbus/dbus-marshal.h index 00a5f502..92d45c64 100644 --- a/dbus/dbus-marshal.h +++ b/dbus/dbus-marshal.h @@ -43,18 +43,27 @@ dbus_bool_t _dbus_marshal_int32 (DBusString *str, dbus_bool_t _dbus_marshal_uint32 (DBusString *str, int byte_order, dbus_uint32_t value); +dbus_bool_t _dbus_marshal_string (DBusString *str, + int byte_order, + const char *value); + double _dbus_demarshal_double (DBusString *str, int byte_order, - int start); + int pos, + int *new_pos); dbus_int32_t _dbus_demarshal_int32 (DBusString *str, int byte_order, - int start); + int pos, + int *new_pos); dbus_uint32_t _dbus_demarshal_uint32 (DBusString *str, int byte_order, - int start); - - + int pos, + int *new_pos); +char * _dbus_demarshal_string (DBusString *str, + int byte_order, + int pos, + int *new_pos); -- cgit