satyr  0.28
java/stacktrace.h
Go to the documentation of this file.
1 /*
2  java_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_JAVA_STACKTRACE_H
22 #define SATYR_JAVA_STACKTRACE_H
23 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 struct sr_java_thread;
34 struct sr_location;
35 struct sr_json_value;
36 
37 #include "../report_type.h"
38 #include <stdint.h>
39 
41 {
42  enum sr_report_type type;
43 
48 };
49 
56 struct sr_java_stacktrace *
58 
65 void
67 
73 void
75 
84 struct sr_java_stacktrace *
85 sr_java_stacktrace_dup(struct sr_java_stacktrace *stacktrace);
86 
94 int
95 sr_java_stacktrace_cmp(struct sr_java_stacktrace *stacktrace1,
96  struct sr_java_stacktrace *stacktrace2);
97 
120 struct sr_java_stacktrace *
121 sr_java_stacktrace_parse(const char **input,
122  struct sr_location *location);
123 
127 char *
129 
137 char *
139 
149 struct sr_java_stacktrace *
150 sr_java_stacktrace_from_json(struct sr_json_value *root, char **error_message);
151 
152 struct sr_java_thread *
153 sr_java_find_crash_thread(struct sr_java_stacktrace *stacktrace);
154 
155 #ifdef __cplusplus
156 }
157 #endif
158 
159 #endif
struct sr_java_stacktrace * sr_java_stacktrace_from_json(struct sr_json_value *root, char **error_message)
struct sr_java_thread * threads
A thread of execution of a JAVA-produced stack trace.
Definition: java/thread.h:47
char * sr_java_stacktrace_to_json(struct sr_java_stacktrace *stacktrace)
struct sr_java_stacktrace * sr_java_stacktrace_parse(const char **input, struct sr_location *location)
char * sr_java_stacktrace_get_reason(struct sr_java_stacktrace *stacktrace)
void sr_java_stacktrace_free(struct sr_java_stacktrace *stacktrace)
void sr_java_stacktrace_init(struct sr_java_stacktrace *stacktrace)
int sr_java_stacktrace_cmp(struct sr_java_stacktrace *stacktrace1, struct sr_java_stacktrace *stacktrace2)
struct sr_java_stacktrace * sr_java_stacktrace_new(void)
A location of a parser in the input stream.
Definition: location.h:42
struct sr_java_stacktrace * sr_java_stacktrace_dup(struct sr_java_stacktrace *stacktrace)