satyr 0.43
Loading...
Searching...
No Matches
abrt.h
Go to the documentation of this file.
1/*
2 abrt.h
3
4 Copyright (C) 2012 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_ABRT_H
21#define SATYR_ABRT_H
22
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#include "report_type.h"
33#include <stdbool.h>
34#include <sys/types.h>
35
36/* Forward declaration to avoid the need to include core/unwind.h */
37struct sr_core_stracetrace_unwind_state;
38
39bool
40sr_abrt_print_report_from_dir(const char *directory,
41 char **error_message);
42
43bool
44sr_abrt_create_core_stacktrace(const char *directory,
45 bool unused,
46 char **error_message);
47bool
48sr_abrt_create_core_stacktrace_from_gdb(const char *directory,
49 const char *gdb_output,
50 bool unused,
51 char **error_message);
52
53
54struct sr_core_stracetrace_unwind_state *
55sr_abrt_get_core_stacktrace_from_core_hook_prepare(pid_t thread_id,
56 char **error_message);
57
58char *
59sr_abrt_get_core_stacktrace_from_core_hook_generate(pid_t thread_id,
60 const char *executable,
61 int signum,
62 struct sr_core_stracetrace_unwind_state *state,
63 char **error_message);
64
65char *
66sr_abrt_get_core_stacktrace_from_core_hook(pid_t thread_id,
67 const char *executable,
68 int signum,
69 char **error_message);
70
71bool
72sr_abrt_create_core_stacktrace_from_core_hook(const char *directory,
73 pid_t thread_id,
74 const char *executable,
75 int signum,
76 char **error_message);
77
78struct sr_rpm_package *
79sr_abrt_parse_dso_list(const char *text);
80
81int
82sr_abrt_rpm_packages_from_dir(const char *directory, struct sr_rpm_package **packages,
83 char **error_message);
84
86sr_abrt_operating_system_from_dir(const char *directory,
87 char **error_message);
88
89struct sr_report *
90sr_abrt_report_from_dir(const char *directory,
91 char **error_message);
92
93/* Deprecated: use sr_report_type_from_type() instead */
94enum sr_report_type
95sr_abrt_type_from_analyzer(const char *analyzer);
96
97enum sr_report_type
98sr_abrt_type_from_type(const char *type);
99
100#ifdef __cplusplus
101}
102#endif
103
104#endif
Report type.