summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-marshal.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2002-12-25 22:58:50 +0000
committerAnders Carlsson <andersca@codefactory.se>2002-12-25 22:58:50 +0000
commitf3729626de0093762c9d00a8d02db9c96fbd5bd2 (patch)
treec884f24465bca1c3c17a1bd12611209505da6407 /dbus/dbus-marshal.h
parent2297787455989c9ec47ea899b2ad6f3f6ef72c05 (diff)
2002-12-26 Anders Carlsson <andersca@codefactory.se>
* 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.
Diffstat (limited to 'dbus/dbus-marshal.h')
-rw-r--r--dbus/dbus-marshal.h19
1 files changed, 14 insertions, 5 deletions
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);