Commit 6f8d8200 authored by Simon McVittie's avatar Simon McVittie
parent cfd73bea
......@@ -612,6 +612,9 @@ _dbus_header_create (DBusHeader *header,
goto oom;
}
/* Note that test/message.c relies on this being in the middle of the
* message: if you change the order of serialization here (but why
* would you?), please find some other way to retain test coverage. */
if (interface != NULL)
{
if (!write_basic_field (&array,
......
......@@ -111,6 +111,7 @@ DBUS_PRIVATE_EXPORT
int _dbus_type_reader_get_current_type (const DBusTypeReader *reader);
DBUS_PRIVATE_EXPORT
int _dbus_type_reader_get_element_type (const DBusTypeReader *reader);
DBUS_PRIVATE_EXPORT
int _dbus_type_reader_get_value_pos (const DBusTypeReader *reader);
DBUS_PRIVATE_EXPORT
void _dbus_type_reader_read_basic (const DBusTypeReader *reader,
......
......@@ -92,6 +92,7 @@ DBUS_PRIVATE_EXPORT
void _dbus_string_init_const_len (DBusString *str,
const char *value,
int len);
DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_string_init_preallocated (DBusString *str,
int allocate_size);
......@@ -112,6 +113,7 @@ char* _dbus_string_get_data (DBusString *str);
DBUS_PRIVATE_EXPORT
const char* _dbus_string_get_const_data (const DBusString *str);
#endif /* _dbus_string_get_const_data */
DBUS_PRIVATE_EXPORT
char* _dbus_string_get_data_len (DBusString *str,
int start,
int len);
......@@ -226,6 +228,7 @@ dbus_bool_t _dbus_string_insert_2_aligned (DBusString *str,
dbus_bool_t _dbus_string_insert_4_aligned (DBusString *str,
int insert_at,
const unsigned char octets[4]);
DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_string_insert_8_aligned (DBusString *str,
int insert_at,
const unsigned char octets[8]);
......
......@@ -161,6 +161,7 @@ installable_tests += \
test-dbus-daemon \
test-dbus-daemon-eavesdrop \
test-fdpass \
test-header-fields \
test-message \
test-monitor \
test-loopback \
......@@ -324,6 +325,15 @@ test_dbus_daemon_eavesdrop_LDADD = \
$(GLIB_LIBS) \
$(NULL)
test_header_fields_SOURCES = \
header-fields.c \
$(NULL)
test_header_fields_LDADD = \
libdbus-testutils.la \
$(top_builddir)/dbus/libdbus-internal.la \
$(GLIB_LIBS) \
$(NULL)
if DBUS_UNIX
test_sd_activation_SOURCES = \
sd-activation.c \
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment