Safir SDK Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CrashReporter.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Copyright Saab AB, 2012-2013 (http://safir.sourceforge.net)
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 
39 namespace Safir
40 {
41 namespace Utilities
42 {
44 {
45 public:
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
85 
Definition: CrashReporter.h:43
#define LLUF_CRASH_REPORTER_API
Definition: CrashReporter.h:32