satyr 0.43
Loading...
Searching...
No Matches
java/frame.h
Go to the documentation of this file.
1/*
2 java_frame.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_FRAME_H
22#define SATYR_JAVA_FRAME_H
23
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#include "../report_type.h"
34#include <json.h>
35#include <stdbool.h>
36#include <stdint.h>
37#include <glib.h>
38
39struct sr_location;
40
42{
43 enum sr_report_type type;
44
54 char *name;
55
60 char *file_name;
61
66 uint32_t file_line;
67
73
79
84
89 char *message;
90
91 struct sr_java_frame *next;
92};
93
100struct sr_java_frame *
102
109struct sr_java_frame *
111
118void
120
127void
129
135void
137
143struct sr_java_frame *
145 struct sr_java_frame *item);
146
154struct sr_java_frame *
156
170struct sr_java_frame *
172 bool siblings);
173
187int
189 struct sr_java_frame *frame2);
190
204int
206 struct sr_java_frame *frame2);
207
208
216void
218 GString *dest);
219
236struct sr_java_frame *
238 struct sr_location *location);
239
256struct sr_java_frame *
257sr_java_frame_parse(const char **input,
258 struct sr_location *location);
259
266char *
268
278struct sr_java_frame *
279sr_java_frame_from_json(json_object *root, char **error_message);
280
281#ifdef __cplusplus
282}
283#endif
284
285#endif
struct sr_java_frame * sr_java_frame_get_last(struct sr_java_frame *frame)
void sr_java_frame_free(struct sr_java_frame *frame)
int sr_java_frame_cmp_distance(struct sr_java_frame *frame1, struct sr_java_frame *frame2)
struct sr_java_frame * sr_java_frame_parse(const char **input, struct sr_location *location)
struct sr_java_frame * sr_java_frame_append(struct sr_java_frame *dest, struct sr_java_frame *item)
char * sr_java_frame_to_json(struct sr_java_frame *frame)
void sr_java_frame_init(struct sr_java_frame *frame)
int sr_java_frame_cmp(struct sr_java_frame *frame1, struct sr_java_frame *frame2)
struct sr_java_frame * sr_java_frame_parse_exception(const char **input, struct sr_location *location)
struct sr_java_frame * sr_java_frame_dup(struct sr_java_frame *frame, bool siblings)
struct sr_java_frame * sr_java_frame_new_exception(void)
struct sr_java_frame * sr_java_frame_new(void)
void sr_java_frame_free_full(struct sr_java_frame *frame)
struct sr_java_frame * sr_java_frame_from_json(json_object *root, char **error_message)
void sr_java_frame_append_to_str(struct sr_java_frame *frame, GString *dest)
Report type.
char * class_path
Definition java/frame.h:72
char * file_name
Definition java/frame.h:60
char * message
Definition java/frame.h:89
uint32_t file_line
Definition java/frame.h:66
bool is_exception
Definition java/frame.h:83
A location of a parser in the input stream.
Definition location.h:43