blob: 7e9b2cf7d8f21dad09cc2f2d54e660c6eada2d6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#ifndef PORTAGE_SETTINGS_H
#define PORTAGE_SETTINGS_H
#include "stringlist.h"
typedef struct PortageSettings PortageSettings;
PortageSettings *portageSettingsCreate();
// Reimplemented methods.
// Those are simple calls to the python methods.
int portageSettingsResetUseFlags(PortageSettings*);
int portageSettingsReset(PortageSettings*);
int portageSettingsReloadConfig(PortageSettings*);
int portageSettingsReloadWorld(PortageSettings*);
StringList* portageSettingsGetWorld(PortageSettings*);
StringList* portageSettingsGetArchList(PortageSettings*);
StringList* portageSettingsGetVirtuals(PortageSettings*);
// Fields access.
// Those are functions used to access different fields of the PortageSetting object.
//'ACCEPT_KEYWORDS', 'SystemUseFlags', 'UseFlagDict', 'arch', 'portdir', 'portdir_overlay', 'user_config_dir'
char* portageSettingsAcceptKeywords(PortageSettings*);
StringList* portageSettingsSystemUseFlags(PortageSettings*);
//void portageSettingsUseFlagDict();
char* portageSettingsArch(PortageSettings*);
char* portageSettingsPortdir(PortageSettings*);
char* portageSettingsPortdirOverlay(PortageSettings*);
char* portageSettingsUserConfigDir(PortageSettings*);
void portageSettingsFree(PortageSettings*);
#endif
|