libreport  2.13.1
A tool to inform users about various problems on the running system
global_configuration.h
1 /*
2  Copyright (C) 2015 ABRT team
3  Copyright (C) 2015 RedHat Inc
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 
20 #ifndef LIBREPORT_GLOBAL_CONFIGURATION_H
21 #define LIBREPORT_GLOBAL_CONFIGURATION_H
22 
23 #include "libreport_types.h"
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 bool libreport_load_global_configuration(void);
30 
31 bool libreport_load_global_configuration_from_dirs(const char *dirs[], int dir_flags[]);
32 
33 void libreport_free_global_configuration(void);
34 
35 string_vector_ptr_t libreport_get_global_always_excluded_elements(void);
36 
37 bool libreport_get_global_create_private_ticket(void);
38 
48 void libreport_set_global_create_private_ticket(bool enabled, int flags);
49 
60 bool libreport_get_global_stop_on_not_reportable(void);
61 
74 void libreport_set_global_stop_on_not_reportable(bool enabled, int flags);
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif /* LIBREPORT_GLOBAL_CONFIGURATION_H */