From 31988af4089f3793940417535f8eabaae1ac26c8 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sun, 16 Jan 2005 15:51:55 +0000 Subject: 2005-01-16 Havoc Pennington * Add and fix docs according to Doxygen warnings throughout source. * dbus/dbus-marshal-recursive.c (_dbus_type_reader_array_is_empty): change this to just call array_reader_get_array_len() and make it static * dbus/dbus-message.c (dbus_message_iter_get_element_type): rename from get_array_type (dbus_message_iter_init_append): rename from append_iter_init * dbus/dbus-marshal-recursive.c (_dbus_type_reader_get_element_type): rename from _dbus_type_reader_get_array_type --- dbus/dbus-string.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dbus/dbus-string.c') diff --git a/dbus/dbus-string.c b/dbus/dbus-string.c index dccf5176..52099d65 100644 --- a/dbus/dbus-string.c +++ b/dbus/dbus-string.c @@ -809,7 +809,7 @@ _dbus_string_copy_data_len (const DBusString *str, * * @param str a string * @param buffer a C buffer to copy data to - * @param len maximum length of C buffer + * @param avail_len maximum length of C buffer */ void _dbus_string_copy_to_buffer (const DBusString *str, @@ -1046,13 +1046,16 @@ _dbus_string_append (DBusString *str, return append (real, buffer, buffer_len); } +/** assign 4 bytes from one string to another */ #define ASSIGN_4_OCTETS(p, octets) \ *((dbus_uint32_t*)(p)) = *((dbus_uint32_t*)(octets)); #ifdef DBUS_HAVE_INT64 +/** assign 8 bytes from one string to another */ #define ASSIGN_8_OCTETS(p, octets) \ *((dbus_uint64_t*)(p)) = *((dbus_uint64_t*)(octets)); #else +/** assign 8 bytes from one string to another */ #define ASSIGN_8_OCTETS(p, octets) \ do { \ unsigned char *b; \ @@ -1120,6 +1123,7 @@ _dbus_string_append_8_aligned (DBusString *str, * with any alignment padding initialized to 0. * * @param str the DBusString + * @param insert_at where to insert * @param octets 4 bytes to insert * @returns #FALSE if not enough memory. */ @@ -1143,6 +1147,7 @@ _dbus_string_insert_4_aligned (DBusString *str, * with any alignment padding initialized to 0. * * @param str the DBusString + * @param insert_at where to insert * @param octets 8 bytes to insert * @returns #FALSE if not enough memory. */ -- cgit