From a42704eccc9867b85bf14a37533576aff627cb40 Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Fri, 9 Dec 2011 08:21:26 +0000 Subject: Add API on iOS to generate dump on demand. Review URL: http://breakpad.appspot.com/331001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@893 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/ios/Breakpad.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/client/ios/Breakpad.h') diff --git a/src/client/ios/Breakpad.h b/src/client/ios/Breakpad.h index 22431bfe..f1e19acf 100644 --- a/src/client/ios/Breakpad.h +++ b/src/client/ios/Breakpad.h @@ -47,6 +47,10 @@ extern "C" { #include +// The keys in the dictionary returned by |BreakpadGenerateReport|. +#define BREAKPAD_OUTPUT_DUMP_FILE "BreakpadDumpFile" +#define BREAKPAD_OUTPUT_CONFIG_FILE "BreakpadConfigFile" + // Optional user-defined function to decide if we should handle this crash or // forward it along. // Return true if you want Breakpad to handle it. @@ -201,6 +205,13 @@ void BreakpadUploadNextReport(BreakpadRef ref); void BreakpadUploadData(BreakpadRef ref, NSData *data, NSString *name, NSDictionary *server_parameters); +// Generate a breakpad minidump and configuration file in the dump directory. +// The report will be available for uploading. The paths of the created files +// are returned in the dictionary. |server_parameters| is additional server +// parameters to add in the config file. +NSDictionary *BreakpadGenerateReport(BreakpadRef ref, + NSDictionary *server_parameters); + #ifdef __cplusplus } #endif -- cgit v1.2.1