13 #include "abrt-dbus.h"
15 #include <libreport/internal_libreport.h>
25 # define _(S) gettext(S)
31 #define NORETURN __attribute__ ((noreturn))
34 #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0])))
41 extern char **environ;
42 #if defined(__GLIBC__) && __GLIBC__ < 2
43 int vdprintf(
int d,
const char *format, va_list ap);
47 #define low_free_space abrt_low_free_space
54 int low_free_space(
unsigned setting_MaxCrashReportsSize,
const char *dump_location);
56 #define trim_problem_dirs abrt_trim_problem_dirs
57 void trim_problem_dirs(
const char *dirname,
double cap_size,
const char *exclude_path);
58 #define run_unstrip_n abrt_run_unstrip_n
59 char *run_unstrip_n(
const char *dump_dir_name,
unsigned timeout_sec);
60 #define get_backtrace abrt_get_backtrace
61 char *get_backtrace(
const char *dump_dir_name,
unsigned timeout_sec,
const char *debuginfo_dirs);
64 #define g_settings_nMaxCrashReportsSize abrt_g_settings_nMaxCrashReportsSize
65 extern unsigned int g_settings_nMaxCrashReportsSize;
66 #define g_settings_sWatchCrashdumpArchiveDir abrt_g_settings_sWatchCrashdumpArchiveDir
67 extern char * g_settings_sWatchCrashdumpArchiveDir;
68 #define g_settings_dump_location abrt_g_settings_dump_location
69 extern char * g_settings_dump_location;
70 #define g_settings_delete_uploaded abrt_g_settings_delete_uploaded
71 extern bool g_settings_delete_uploaded;
72 #define g_settings_autoreporting abrt_g_settings_autoreporting
73 extern bool g_settings_autoreporting;
74 #define g_settings_autoreporting_event abrt_g_settings_autoreporting_event
75 extern char * g_settings_autoreporting_event;
76 #define g_settings_shortenedreporting abrt_g_settings_shortenedreporting
77 extern bool g_settings_shortenedreporting;
80 #define load_abrt_conf abrt_load_abrt_conf
81 int load_abrt_conf(
void);
82 #define free_abrt_conf_data abrt_free_abrt_conf_data
83 void free_abrt_conf_data(
void);
86 void migrate_to_xdg_dirs(
void);
88 int check_recent_crash_file(
const char *filename,
const char *executable);
91 #define daemon_is_ok abrt_daemon_is_ok
92 int daemon_is_ok(
void);
99 #define notify_new_path abrt_notify_new_path
103 #define koops_extract_version abrt_koops_extract_version
104 char *koops_extract_version(
const char *line);
105 #define kernel_tainted_short abrt_kernel_tainted_short
106 char *kernel_tainted_short(
const char *kernel_bt);
107 #define kernel_tainted_long abrt_kernel_tainted_long
108 char *kernel_tainted_long(
const char *tainted_short);
109 #define koops_hash_str abrt_koops_hash_str
110 int koops_hash_str(
char hash_str[SHA1_RESULT_LEN*2 + 1],
const char *oops_buf);
111 #define koops_extract_oopses abrt_koops_extract_oopses
112 void koops_extract_oopses(GList **oops_list,
char *buffer,
size_t buflen);
113 #define koops_print_suspicious_strings abrt_koops_print_suspicious_strings
114 void koops_print_suspicious_strings(
void);
int delete_problem_dirs_over_dbus(const GList *problem_dir_paths)
Delets multiple problems specified by their id (as returned from problem_data_save) ...
GList * get_problems_over_dbus(bool authorize)
Fetches all problems from problem database.
An opaque structure holding a list of ignored problems.
void ignored_problems_remove(ignored_problems_t *set, const char *problem_id)
Removes a problem from the ignored problems.
bool ignored_problems_contains(ignored_problems_t *set, const char *problem_id)
Checks if a problem is in the ignored problems.
ignored_problems_t * ignored_problems_new(char *file_path)
Initializes a new instance of ignored problems.
#define notify_new_path
Sends notification to abrtd that a new problem has been detected.
problem_data_t * get_problem_data_dbus(const char *problem_dir_path)
Fetches problem information for specified problem id.
void ignored_problems_free(ignored_problems_t *set)
Destroys an instance of ignored problems.
void ignored_problems_add(ignored_problems_t *set, const char *problem_id)
Adds a problem to the ignored problems.
int low_free_space(unsigned setting_MaxCrashReportsSize, const char *dump_location)
Checks if there is enough free space to store the problem data.
int chown_dir_over_dbus(const char *problem_dir_path)
Changes the access rights of the problem specified by problem id.