satyr
0.43
Toggle main menu visibility
Loading...
Searching...
No Matches
include
python
python/stacktrace.h
Go to the documentation of this file.
1
/*
2
python_stacktrace.h
3
4
Copyright (C) 2012 ABRT Team
5
Copyright (C) 2012 Red Hat, Inc.
6
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License along
18
with this program; if not, write to the Free Software Foundation, Inc.,
19
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
*/
21
#ifndef SATYR_PYTHON_STACKTRACE_H
22
#define SATYR_PYTHON_STACKTRACE_H
23
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
#include "
../report_type.h
"
34
#include <json.h>
35
#include <stdint.h>
36
37
struct
sr_python_frame
;
38
struct
sr_location
;
39
40
struct
sr_python_stacktrace
41
{
42
enum
sr_report_type type;
43
44
/* Exception class name. */
45
char
*exception_name;
46
47
struct
sr_python_frame
*frames;
48
};
49
56
struct
sr_python_stacktrace
*
57
sr_python_stacktrace_new
(
void
);
58
65
void
66
sr_python_stacktrace_init
(
struct
sr_python_stacktrace
*stacktrace);
67
73
void
74
sr_python_stacktrace_free
(
struct
sr_python_stacktrace
*stacktrace);
75
84
struct
sr_python_stacktrace
*
85
sr_python_stacktrace_dup
(
struct
sr_python_stacktrace
*stacktrace);
86
96
struct
sr_python_stacktrace
*
97
sr_python_stacktrace_parse
(
const
char
**input,
98
struct
sr_location
*location);
99
103
char
*
104
sr_python_stacktrace_get_reason
(
struct
sr_python_stacktrace
*stacktrace);
105
113
char
*
114
sr_python_stacktrace_to_json
(
struct
sr_python_stacktrace
*stacktrace);
115
125
struct
sr_python_stacktrace
*
126
sr_python_stacktrace_from_json
(json_object *root,
char
**error_message);
127
128
#ifdef __cplusplus
129
}
130
#endif
131
132
#endif
sr_python_stacktrace_from_json
struct sr_python_stacktrace * sr_python_stacktrace_from_json(json_object *root, char **error_message)
sr_python_stacktrace_free
void sr_python_stacktrace_free(struct sr_python_stacktrace *stacktrace)
sr_python_stacktrace_get_reason
char * sr_python_stacktrace_get_reason(struct sr_python_stacktrace *stacktrace)
sr_python_stacktrace_dup
struct sr_python_stacktrace * sr_python_stacktrace_dup(struct sr_python_stacktrace *stacktrace)
sr_python_stacktrace_init
void sr_python_stacktrace_init(struct sr_python_stacktrace *stacktrace)
sr_python_stacktrace_to_json
char * sr_python_stacktrace_to_json(struct sr_python_stacktrace *stacktrace)
sr_python_stacktrace_new
struct sr_python_stacktrace * sr_python_stacktrace_new(void)
sr_python_stacktrace_parse
struct sr_python_stacktrace * sr_python_stacktrace_parse(const char **input, struct sr_location *location)
report_type.h
Report type.
sr_location
A location of a parser in the input stream.
Definition
location.h:43
sr_python_frame
Definition
python/frame.h:42
sr_python_stacktrace
Definition
python/stacktrace.h:41
Generated by
1.17.0