blob: d53db08ff365a1fc3e7e05c1e4f7e97d1d13a950 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
#ifndef _PM_CONF_H
#define _PM_CONF_H
#include <alpm.h>
typedef struct __config_t {
unsigned short op;
unsigned short quiet;
unsigned short verbose;
unsigned short version;
unsigned short help;
unsigned short noconfirm;
unsigned short noprogressbar;
unsigned short logmask;
char *configfile;
char *rootdir;
char *dbpath;
char *logfile;
TODO
unsigned short op_q_isfile;
unsigned short op_q_info;
unsigned short op_q_list;
unsigned short op_q_foreign;
unsigned short op_q_unrequired;
unsigned short op_q_deps;
unsigned short op_q_explicit;
unsigned short op_q_owns;
unsigned short op_q_search;
unsigned short op_q_changelog;
unsigned short op_q_upgrade;
unsigned short op_s_clean;
unsigned short op_s_dependsonly;
unsigned short op_s_downloadonly;
unsigned short op_s_info;
unsigned short op_s_sync;
unsigned short op_s_search;
unsigned short op_s_upgrade;
unsigned short group;
pmtransflag_t flags;
unsigned short chomp;
unsigned short usecolor;
unsigned short showsize;
unsigned short totaldownload;
} config_t;
enum {
PM_OP_MAIN = 1,
PM_OP_REMOVE,
PM_OP_UPGRADE,
PM_OP_QUERY,
PM_OP_SYNC,
PM_OP_DEPTEST
};
extern config_t *config;
config_t *config_new(void);
int config_free(config_t *oldconfig);
#endif
|