satyr  0.26
report_type.h
Go to the documentation of this file.
1 /*
2  report_type.h
3 
4  Copyright (C) 2013 Red Hat, Inc.
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License along
17  with this program; if not, write to the Free Software Foundation, Inc.,
18  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20 #ifndef SATYR_REPORT_TYPE_H
21 #define SATYR_REPORT_TYPE_H
22 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 enum sr_report_type
33 {
34  SR_REPORT_INVALID = 0,
35  SR_REPORT_CORE,
36  SR_REPORT_PYTHON,
37  SR_REPORT_KERNELOOPS,
38  SR_REPORT_JAVA,
39  SR_REPORT_GDB,
40  SR_REPORT_RUBY,
41  SR_REPORT_JAVASCRIPT,
42 
43  /* Keep this the last entry. */
44  SR_REPORT_NUM
45 };
46 
47 /* returns malloc()ed string representation of report_type */
48 char *
49 sr_report_type_to_string(enum sr_report_type report_type);
50 
51 /* inverse function */
52 enum sr_report_type
53 sr_report_type_from_string(const char *report_type_str);
54 
55 #ifdef __cplusplus
56 }
57 #endif
58 
59 #endif