X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dbus%2Fdbus-marshal-header.c;h=48151c62559a441114b88114e90e829086ff59dd;hb=2aaeee810d689e23f421cf2b5f3d3f04028c5d40;hp=28984f4c5dd26e4de0b6a1e2e87871fd9a14cdab;hpb=82495f4b4077b8bb60a9d0d23b13bbe54e79dae0;p=platform%2Fupstream%2Fdbus.git diff --git a/dbus/dbus-marshal-header.c b/dbus/dbus-marshal-header.c index 28984f4..48151c6 100644 --- a/dbus/dbus-marshal-header.c +++ b/dbus/dbus-marshal-header.c @@ -276,6 +276,7 @@ _dbus_header_cache_known_nonexistent (DBusHeader *header, * Writes a struct of { byte, variant } with the given basic type. * * @param writer the writer (should be ready to write a struct) + * @param field the header field * @param type the type of the value * @param value the value as for _dbus_marshal_set_basic() * @returns #FALSE if no memory @@ -336,6 +337,7 @@ write_basic_field (DBusTypeWriter *writer, * Sets a struct of { byte, variant } with the given basic type. * * @param reader the reader (should be iterating over the array pointing at the field to set) + * @param field the header field * @param type the type of the value * @param value the value as for _dbus_marshal_set_basic() * @param realign_root where to realign from @@ -452,7 +454,6 @@ _dbus_header_reinit (DBusHeader *header) * to make the header valid, you have to call _dbus_header_create(). * * @param header header to initialize - * @param byte_order byte order of the header * @returns #FALSE if not enough memory */ dbus_bool_t @@ -514,6 +515,7 @@ _dbus_header_copy (const DBusHeader *header, * sense, and passing them in will trigger an assertion failure. * * @param header the header + * @param byte_order byte order of the header * @param message_type the message type * @param destination destination field or #NULL * @param path path field or #NULL @@ -1200,6 +1202,19 @@ _dbus_header_update_lengths (DBusHeader *header, _dbus_header_get_byte_order (header)); } +/** + * Try to find the given field. + * + * @param header the header + * @param field the field code + * @param reader a type reader; on success this is left pointing at the struct + * (uv) for the field, while on failure it is left pointing into empty space + * at the end of the header fields + * @param realign_root another type reader; on success or failure it is left + * pointing to the beginning of the array of fields (i.e. the thing that might + * need realigning) + * @returns #TRUE on success + */ static dbus_bool_t find_field_for_modification (DBusHeader *header, int field, @@ -1497,16 +1512,3 @@ _dbus_header_byteswap (DBusHeader *header, } /** @} */ - -#ifdef DBUS_BUILD_TESTS -#include "dbus-test.h" -#include - -dbus_bool_t -_dbus_marshal_header_test (void) -{ - - return TRUE; -} - -#endif /* DBUS_BUILD_TESTS */