mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-09 09:25:40 +00:00
Add API to find out if there is crash reports to send to the server.
Review URL: https://breakpad.appspot.com/518002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1109 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
52925cb9b3
commit
00407e09c7
|
@ -105,6 +105,9 @@
|
|||
// BreakpadController.
|
||||
- (void)setUploadingEnabled:(BOOL)enabled;
|
||||
|
||||
// Check if there is currently a crash report to upload.
|
||||
- (void)hasReportToUpload:(void(^)(BOOL))callback;
|
||||
|
||||
@end
|
||||
|
||||
#endif // CLIENT_IOS_HANDLER_IOS_BREAKPAD_CONTROLLER_H_
|
||||
|
|
|
@ -228,6 +228,13 @@ NSString* GetPlatform() {
|
|||
});
|
||||
}
|
||||
|
||||
- (void)hasReportToUpload:(void(^)(BOOL))callback {
|
||||
NSAssert(started_, @"The controller must be started before "
|
||||
"hasReportToUpload is called");
|
||||
dispatch_async(queue_, ^{
|
||||
callback(breakpadRef_ && BreakpadHasCrashReportToUpload(breakpadRef_));
|
||||
});
|
||||
}
|
||||
|
||||
#pragma mark -
|
||||
|
||||
|
|
Loading…
Reference in a new issue