1 /*
2  * Copyright (C) 2020 Red Hat, Inc.
3  *
4  * Licensed under the GNU Lesser General Public License Version 2.1
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef _DNF_CONF_H_
22 #define _DNF_CONF_H_
23 
24 #include <glib.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /* redefined: enum class libdnf::Option::Priority */
31 enum DnfConfPriority {
32     DNF_CONF_EMPTY = 0,
33     DNF_CONF_DEFAULT = 10,
34     DNF_CONF_MAINCONFIG = 20,
35     DNF_CONF_AUTOMATICCONFIG = 30,
36     DNF_CONF_REPOCONFIG = 40,
37     DNF_CONF_PLUGINDEFAULT = 50,
38     DNF_CONF_PLUGINCONFIG = 60,
39     DNF_CONF_DROPINCONFIG = 65,
40     DNF_CONF_COMMANDLINE = 70,
41     DNF_CONF_RUNTIME = 80
42 };
43 
44 gchar *dnf_conf_main_get_option(const gchar *name, enum DnfConfPriority *priority, GError ** error);
45 gboolean dnf_conf_main_set_option(const gchar *name, enum DnfConfPriority priority, const gchar *value, GError ** error);
46 gboolean dnf_conf_add_setopt(const gchar *key, enum DnfConfPriority priority, const gchar *value, GError ** error);
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /* _DNF_CONF_H_ */
53