rpm 4.15.1

rpmfc.h
Go to the documentation of this file.
1 #ifndef _H_RPMFC_
2 #define _H_RPMFC_
3
9 #include <rpm/rpmtypes.h>
10 #include <rpm/argv.h> /* for ARGV_t */
11 #include <rpm/rpmspec.h> /* for Package */
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 extern int _rpmfc_debug;
18
21 typedef struct rpmfc_s * rpmfc;
22
25 enum FCOLOR_e {
26 RPMFC_BLACK = 0,
27 RPMFC_ELF32 = (1 << 0),
28 RPMFC_ELF64 = (1 << 1),
29 RPMFC_ELFMIPSN32 = (1 << 2),
30 #define RPMFC_ELF (RPMFC_ELF32|RPMFC_ELF64|RPMFC_ELFMIPSN32)
31 /* (1 << 3) leaks into package headers, reserved */
32 #ifdef __OS2__
33 RPMFC_OS2 = (1 << 5),
34 #endif
35
36 RPMFC_WHITE = (1 << 29),
37 RPMFC_INCLUDE = (1 << 30),
38 RPMFC_ERROR = (1 << 31)
39 };
40
43 typedef rpmFlags FCOLOR_t;
44
47 typedef const struct rpmfcTokens_s * rpmfcToken;
48
55 void rpmfcPrint(const char * msg, rpmfc fc, FILE * fp);
56
62 rpmfc rpmfcFree(rpmfc fc);
63
70 rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags);
71
77 RPM_GNUC_DEPRECATED
78 rpmfc rpmfcNew(void);
79
80
88 rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t * fmode);
89
95 rpmRC rpmfcApply(rpmfc fc);
96
102 rpmds rpmfcProvides(rpmfc fc);
103
109 rpmds rpmfcRequires(rpmfc fc);
110
116 rpmds rpmfcRecommends(rpmfc fc);
117
123 rpmds rpmfcSuggests(rpmfc fc);
124
130 rpmds rpmfcSupplements(rpmfc fc);
131
137 rpmds rpmfcEnhances(rpmfc fc);
138
144 rpmds rpmfcConflicts(rpmfc fc);
145
151 rpmds rpmfcObsoletes(rpmfc fc);
152
159 rpmds rpmfcDependencies(rpmfc fc, rpmTagVal tagN);
160
161 #ifdef __cplusplus
162 }
163 #endif
164
165 #endif /* _H_RPMFC_ */
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
rpmfcEnhances
rpmds rpmfcEnhances(rpmfc fc)
RPMFC_WHITE
@ RPMFC_WHITE
Definition: rpmfc.h:36
rpmfcFree
rpmfc rpmfcFree(rpmfc fc)
rpmfcApply
rpmRC rpmfcApply(rpmfc fc)
_rpmfc_debug
int _rpmfc_debug
rpmfcRecommends
rpmds rpmfcRecommends(rpmfc fc)
rpm_mode_t
uint16_t rpm_mode_t
Definition: rpmtypes.h:53
RPMFC_ELFMIPSN32
@ RPMFC_ELFMIPSN32
Definition: rpmfc.h:29
rpmfcCreate
rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags)
RPMFC_ELF64
@ RPMFC_ELF64
Definition: rpmfc.h:28
rpmfcRequires
rpmds rpmfcRequires(rpmfc fc)
rpmfcObsoletes
rpmds rpmfcObsoletes(rpmfc fc)
ARGV_t
char ** ARGV_t
Definition: argv.h:17
RPM_GNUC_DEPRECATED
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:81
rpmRC
enum rpmRC_e rpmRC
rpmfcPrint
void rpmfcPrint(const char *msg, rpmfc fc, FILE *fp)
FCOLOR_t
rpmFlags FCOLOR_t
Definition: rpmfc.h:43
rpmfcDependencies
rpmds rpmfcDependencies(rpmfc fc, rpmTagVal tagN)
FCOLOR_e
FCOLOR_e
Definition: rpmfc.h:25
rpmfcSuggests
rpmds rpmfcSuggests(rpmfc fc)
rpmfcProvides
rpmds rpmfcProvides(rpmfc fc)
RPMFC_ELF
#define RPMFC_ELF
Definition: rpmfc.h:30
rpmfc
struct rpmfc_s * rpmfc
Definition: rpmfc.h:21
RPMFC_INCLUDE
@ RPMFC_INCLUDE
Definition: rpmfc.h:37
rpmTagVal
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmfcClassify
rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t *fmode)
rpmfcConflicts
rpmds rpmfcConflicts(rpmfc fc)
rpmfcNew
RPM_GNUC_DEPRECATED rpmfc rpmfcNew(void)
RPMFC_BLACK
@ RPMFC_BLACK
Definition: rpmfc.h:26
RPMFC_ERROR
@ RPMFC_ERROR
Definition: rpmfc.h:38
rpmfcSupplements
rpmds rpmfcSupplements(rpmfc fc)
rpmfcToken
const struct rpmfcTokens_s * rpmfcToken
Definition: rpmfc.h:47
RPMFC_ELF32
@ RPMFC_ELF32
Definition: rpmfc.h:27
rpmds
struct rpmds_s * rpmds
Definition: rpmtypes.h:65