Plausible CrashReporter
Protected Attributes | List of all members
PLCrashReporterCallbacks Struct Reference

This structure contains callbacks supported by PLCrashReporter to allow the host application to perform additional tasks prior to program termination after a crash has occured. More...

#import <PLCrashReporter.h>

Protected Attributes

uint16_t version
 The version number of this structure. More...
 
void * context
 An arbitrary user-supplied context value. More...
 
PLCrashReporterPostCrashSignalCallback handleSignal
 The callback used to report caught signal information. More...
 

Detailed Description

This structure contains callbacks supported by PLCrashReporter to allow the host application to perform additional tasks prior to program termination after a crash has occured.

See Also
Async-Safe Programming Guide

Member Data Documentation

- (void*) context
protected

An arbitrary user-supplied context value.

This value may be NULL.

- (PLCrashReporterPostCrashSignalCallback) handleSignal
protected

The callback used to report caught signal information.

In version 0 of this structure, all crashes will be reported via this function.

Warning
When using PLCrashReporterSignalHandlerTypeMach, the siginfo_t argument to this function will be derived from the Mach exception data, and may be incorrect, or may otherwise not match the expected data as provided via PLCrashReporterSignalHandlerTypeBSD. In addition, the provided ucontext_t value will be zero-initialized, and will not provide valid thread state.

This callback will be deprecated in favor of a Mach-compatible replacement in a future release; support is maintained here to allow clients that rely on post-crash callbacks without thread state to make use of Mach exceptions.

- (uint16_t) version
protected

The version number of this structure.

If not one of the defined version numbers for this type, the behavior is undefined. The current version of this structure is 0.


The documentation for this struct was generated from the following file: