From 606eb2106b3d7f5cd36a4f1786d281b771bb1bf7 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 21 Jan 2005 06:18:04 +0000 Subject: 2005-01-21 Havoc Pennington * dbus/dbus-bus.c: add more return_if_fail checks * dbus/dbus-message.c (load_message): have the "no validation" mode (have to edit the code to toggle the mode for now though) * dbus/dbus-marshal-header.c (_dbus_header_load): have a mode that skips all validation; I want to use this at least for benchmark baseline, I'm not sure if it should be a publicly-available switch. --- dbus/dbus-marshal-header.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dbus/dbus-marshal-header.h') diff --git a/dbus/dbus-marshal-header.h b/dbus/dbus-marshal-header.h index 61e9246a..fed2888b 100644 --- a/dbus/dbus-marshal-header.h +++ b/dbus/dbus-marshal-header.h @@ -115,7 +115,8 @@ dbus_bool_t _dbus_header_have_message_untrusted (int max_messag const DBusString *str, int start, int len); -dbus_bool_t _dbus_header_load_untrusted (DBusHeader *header, +dbus_bool_t _dbus_header_load (DBusHeader *header, + DBusValidationMode mode, DBusValidity *validity, int byte_order, int fields_array_len, -- cgit