From 8602aa71ecba32d26985bdbbddc8e618ca203ff9 Mon Sep 17 00:00:00 2001 From: doshimun Date: Wed, 7 May 2008 21:54:12 +0000 Subject: Some style guide compliance changes and changed the prototype of the method to get custom client info in ClientInfo class. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@270 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/windows/crash_generation/client_info.cc | 5 ++--- src/client/windows/crash_generation/client_info.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/client/windows/crash_generation') diff --git a/src/client/windows/crash_generation/client_info.cc b/src/client/windows/crash_generation/client_info.cc index 48886d2a..0da031c9 100644 --- a/src/client/windows/crash_generation/client_info.cc +++ b/src/client/windows/crash_generation/client_info.cc @@ -169,9 +169,8 @@ bool ClientInfo::PopulateCustomInfo() { return bytes_count == read_count; } -int ClientInfo::GetCustomInfo(CustomInfoEntry const** custom_info) const { - *custom_info = custom_info_entries_.get(); - return custom_client_info_.count; +const CustomClientInfo& ClientInfo::GetCustomInfo() const { + return custom_client_info_; } } // namespace google_breakpad diff --git a/src/client/windows/crash_generation/client_info.h b/src/client/windows/crash_generation/client_info.h index db3f05e9..f203b83d 100644 --- a/src/client/windows/crash_generation/client_info.h +++ b/src/client/windows/crash_generation/client_info.h @@ -88,10 +88,12 @@ class ClientInfo { bool Initialize(); bool GetClientExceptionInfo(EXCEPTION_POINTERS** ex_info) const; bool GetClientThreadId(DWORD* thread_id) const; + // Reads the custom information from the client process address space. bool PopulateCustomInfo(); + // Returns the client custom information. - int GetCustomInfo(CustomInfoEntry const** custom_info) const; + const CustomClientInfo& GetCustomInfo() const; private: // Crash generation server. -- cgit v1.2.1