Safir SDK Core
Loading...
Searching...
No Matches
CrashReporter.h
Go to the documentation of this file.
1/******************************************************************************
2*
3* Copyright Saab AB, 2012-2013 (http://safirsdkcore.com)
4*
5* Created by: Lars Hagström / lars@foldspace.nu
6*
7*******************************************************************************
8*
9* This file is part of Safir SDK Core.
10*
11* Safir SDK Core is free software: you can redistribute it and/or modify
12* it under the terms of version 3 of the GNU General Public License as
13* published by the Free Software Foundation.
14*
15* Safir SDK Core is distributed in the hope that it will be useful,
16* but WITHOUT ANY WARRANTY; without even the implied warranty of
17* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18* GNU General Public License for more details.
19*
20* You should have received a copy of the GNU General Public License
21* along with Safir SDK Core. If not, see <http://www.gnu.org/licenses/>.
22*
23******************************************************************************/
24#ifndef __LLUF_CRASH_REPORTER_H__
25#define __LLUF_CRASH_REPORTER_H__
26
27#include <Safir/Utilities/Internal/VisibilityHelpers.h>
28
29#ifdef lluf_crash_reporter_EXPORTS
30# define LLUF_CRASH_REPORTER_API SAFIR_HELPER_DLL_EXPORT
31#else
32# define LLUF_CRASH_REPORTER_API SAFIR_HELPER_DLL_IMPORT
33# define SAFIR_LIBRARY_NAME "lluf_crash_reporter"
34# define SAFIR_NO_DEBUG_LIBRARY_SUFFIX
35# include <Safir/Utilities/Internal/AutoLink.h>
36#endif
37#define LLUF_CRASH_REPORTER_LOCAL SAFIR_HELPER_DLL_LOCAL
38
39namespace Safir
40{
41namespace Utilities
42{
44{
45public:
52 static void Start();
53
60 static void Stop();
61
63 typedef void (*DumpCallback)(const char* const dumpPath);
64
70 static void RegisterCallback(const DumpCallback callback);
71
80 static bool Dump();
81};
82}
83}
84#endif
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
Definition CrashReporter.h:44
static void Start()
Initiate the crash reporting functionality.
static void Stop()
Unregister the crash reporting functionality and clean up resources.
static bool Dump()
Write a dump immediately.
static void RegisterCallback(const DumpCallback callback)
Register a callback that will be called when a dump has occurred.
#define LLUF_CRASH_REPORTER_API
Definition CrashReporter.h:32