satyr  0.26
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 
28 #ifdef __cplusplus
29 extern "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 */
37 struct sr_core_stracetrace_unwind_state;
38 
39 bool
40 sr_abrt_print_report_from_dir(const char *directory,
41  char **error_message);
42 
43 /* NOTE: the hash_fingerprints argument has no effect because fingerprint
44  * generation is disabled. */
45 bool
46 sr_abrt_create_core_stacktrace(const char *directory,
47  bool hash_fingerprints,
48  char **error_message);
49 bool
50 sr_abrt_create_core_stacktrace_from_gdb(const char *directory,
51  const char *gdb_output,
52  bool hash_fingerprints,
53  char **error_message);
54 
55 
56 struct sr_core_stracetrace_unwind_state *
57 sr_abrt_get_core_stacktrace_from_core_hook_prepare(pid_t thread_id,
58  char **error_message);
59 
60 char *
61 sr_abrt_get_core_stacktrace_from_core_hook_generate(pid_t thread_id,
62  const char *executable,
63  int signum,
64  struct sr_core_stracetrace_unwind_state *state,
65  char **error_message);
66 
67 char *
68 sr_abrt_get_core_stacktrace_from_core_hook(pid_t thread_id,
69  const char *executable,
70  int signum,
71  char **error_message);
72 
73 bool
74 sr_abrt_create_core_stacktrace_from_core_hook(const char *directory,
75  pid_t thread_id,
76  const char *executable,
77  int signum,
78  char **error_message);
79 
80 struct sr_rpm_package *
81 sr_abrt_parse_dso_list(const char *text);
82 
83 int
84 sr_abrt_rpm_packages_from_dir(const char *directory, struct sr_rpm_package **packages,
85  char **error_message);
86 
87 struct sr_operating_system *
88 sr_abrt_operating_system_from_dir(const char *directory,
89  char **error_message);
90 
91 struct sr_report *
92 sr_abrt_report_from_dir(const char *directory,
93  char **error_message);
94 
95 /* Deprecated: use sr_report_type_from_type() instead */
96 enum sr_report_type
97 sr_abrt_type_from_analyzer(const char *analyzer);
98 
99 enum sr_report_type
100 sr_abrt_type_from_type(const char *type);
101 
102 #ifdef __cplusplus
103 }
104 #endif
105 
106 #endif
Report type.