From 3d4dc1f20185e0689f3b569d4d22259b5835e78f Mon Sep 17 00:00:00 2001 From: doshimun Date: Mon, 5 May 2008 21:03:51 +0000 Subject: Add a convenience method to CustomClientInfo struct to set both name and value in one call. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@268 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/common/ipc_protocol.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/windows/common/ipc_protocol.h') diff --git a/src/client/windows/common/ipc_protocol.h b/src/client/windows/common/ipc_protocol.h index 35b99016..e0a27a88 100644 --- a/src/client/windows/common/ipc_protocol.h +++ b/src/client/windows/common/ipc_protocol.h @@ -71,6 +71,11 @@ struct CustomInfoEntry { wcscpy_s(value, kValueMaxLength, value_arg); } + void set(const wchar_t* name_arg, const wchar_t* value_arg) { + set_name(name_arg); + set_value(value_arg); + } + wchar_t name[kNameMaxLength]; wchar_t value[kValueMaxLength]; }; -- cgit v1.2.1