15 #include "abrt-dbus.h"
17 #include <libreport/internal_libreport.h>
21 #define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0])))
28 extern char **environ;
29 #if defined(__GLIBC__) && __GLIBC__ < 2
30 int vdprintf(
int d,
const char *format, va_list ap);
34 #define low_free_space abrt_low_free_space
41 int low_free_space(
unsigned setting_MaxCrashReportsSize,
const char *dump_location);
43 #define trim_problem_dirs abrt_trim_problem_dirs
44 void trim_problem_dirs(
const char *dirname,
double cap_size,
const char *exclude_path);
45 #define ensure_writable_dir_id abrt_ensure_writable_dir_uid_git
46 void ensure_writable_dir_uid_gid(
const char *dir, mode_t mode, uid_t uid, gid_t gid);
47 #define ensure_writable_dir abrt_ensure_writable_dir
48 void ensure_writable_dir(
const char *dir, mode_t mode,
const char *user);
49 #define ensure_writable_dir_group abrt_ensure_writable_dir_group
50 void ensure_writable_dir_group(
const char *dir, mode_t mode,
const char *user,
const char *group);
51 #define run_unstrip_n abrt_run_unstrip_n
52 char *run_unstrip_n(
const char *dump_dir_name,
unsigned timeout_sec);
53 #define get_backtrace abrt_get_backtrace
54 char *get_backtrace(
const char *dump_dir_name,
unsigned timeout_sec,
const char *debuginfo_dirs);
56 #define dir_is_in_dump_location abrt_dir_is_in_dump_location
57 bool dir_is_in_dump_location(
const char *dir_name);
58 #define dir_has_correct_permissions abrt_dir_has_correct_permissions
59 bool dir_has_correct_permissions(
const char *dir_name);
60 #define allowed_new_user_problem_entry abrt_allowed_new_user_problem_entry
61 bool allowed_new_user_problem_entry(uid_t uid,
const char *name,
const char *value);
63 #define g_settings_nMaxCrashReportsSize abrt_g_settings_nMaxCrashReportsSize
64 extern unsigned int g_settings_nMaxCrashReportsSize;
65 #define g_settings_sWatchCrashdumpArchiveDir abrt_g_settings_sWatchCrashdumpArchiveDir
66 extern char * g_settings_sWatchCrashdumpArchiveDir;
67 #define g_settings_dump_location abrt_g_settings_dump_location
68 extern char * g_settings_dump_location;
69 #define g_settings_delete_uploaded abrt_g_settings_delete_uploaded
70 extern bool g_settings_delete_uploaded;
71 #define g_settings_autoreporting abrt_g_settings_autoreporting
72 extern bool g_settings_autoreporting;
73 #define g_settings_autoreporting_event abrt_g_settings_autoreporting_event
74 extern char * g_settings_autoreporting_event;
75 #define g_settings_shortenedreporting abrt_g_settings_shortenedreporting
76 extern bool g_settings_shortenedreporting;
77 #define g_settings_privatereports abrt_g_settings_privatereports
78 extern bool g_settings_privatereports;
79 #define g_settings_debug_level abrt_g_settings_debug_level
80 extern unsigned int g_settings_debug_level;
83 #define load_abrt_conf abrt_load_abrt_conf
84 int load_abrt_conf(
void);
85 #define free_abrt_conf_data abrt_free_abrt_conf_data
86 void free_abrt_conf_data(
void);
88 #define load_abrt_conf_file abrt_load_abrt_conf_file
89 int load_abrt_conf_file(
const char *file, map_string_t *settings);
91 #define load_abrt_plugin_conf_file abrt_load_abrt_plugin_conf_file
92 int load_abrt_plugin_conf_file(
const char *file, map_string_t *settings);
94 #define save_abrt_conf_file abrt_save_abrt_conf_file
95 int save_abrt_conf_file(
const char *file, map_string_t *settings);
97 #define save_abrt_plugin_conf_file abrt_save_abrt_plugin_conf_file
98 int save_abrt_plugin_conf_file(
const char *file, map_string_t *settings);
101 void migrate_to_xdg_dirs(
void);
103 int check_recent_crash_file(
const char *filename,
const char *executable);
106 #define daemon_is_ok abrt_daemon_is_ok
107 int daemon_is_ok(
void);
114 #define notify_new_path abrt_notify_new_path
118 #define koops_extract_version abrt_koops_extract_version
119 char *koops_extract_version(
const char *line);
120 #define kernel_tainted_short abrt_kernel_tainted_short
121 char *kernel_tainted_short(
const char *kernel_bt);
122 #define kernel_tainted_long abrt_kernel_tainted_long
123 char *kernel_tainted_long(
const char *tainted_short);
124 #define koops_hash_str abrt_koops_hash_str
125 int koops_hash_str(
char hash_str[SHA1_RESULT_LEN*2 + 1],
const char *oops_buf);
126 #define koops_extract_oopses abrt_koops_extract_oopses
127 void koops_extract_oopses(GList **oops_list,
char *buffer,
size_t buflen);
128 #define koops_suspicious_strings_blacklist abrt_koops_suspicious_strings_blacklist
129 GList *koops_suspicious_strings_blacklist(
void);
130 #define koops_print_suspicious_strings abrt_koops_print_suspicious_strings
131 void koops_print_suspicious_strings(
void);
138 #define koops_print_suspicious_strings_filtered abrt_koops_print_suspicious_strings_filtered
int delete_problem_dirs_over_dbus(const GList *problem_dir_paths)
Delets multiple problems specified by their id (as returned from problem_data_save) ...
void ignored_problems_add_problem_data(ignored_problems_t *set, problem_data_t *pd)
Adds a problem defined by its data to the ignored problems.
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_problem_data(ignored_problems_t *set, problem_data_t *pd)
Checks if a problem defined its data is in the ignored problems.
bool ignored_problems_contains(ignored_problems_t *set, const char *problem_id)
Checks if a problem is in the ignored problems.
int test_exist_over_dbus(const char *problem_id, const char *element_name)
Checks whether the given element name exists.
ignored_problems_t * ignored_problems_new(char *file_path)
Initializes a new instance of ignored problems.
problem_data_t * get_full_problem_data_over_dbus(const char *problem_dir_path)
Fetches full problem data for specified problem id.
#define notify_new_path
Sends notification to abrtd that a new problem has been detected.
char * load_text_over_dbus(const char *problem_id, const char *element_name)
void ignored_problems_remove_problem_data(ignored_problems_t *set, problem_data_t *pd)
Removes a problem defined by its data from the ignored problems.
problem_data_t * get_problem_data_dbus(const char *problem_dir_path)
Fetches problem information for specified problem id.
#define koops_print_suspicious_strings_filtered
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.