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 {
27  RPMFC_ELF32 = (1 << 0),
28  RPMFC_ELF64 = (1 << 1),
29  RPMFC_ELFMIPSN32 = (1 << 2),
31  /* (1 << 3) leaks into package headers, reserved */
32 
33  RPMFC_WHITE = (1 << 29),
34  RPMFC_INCLUDE = (1 << 30),
35  RPMFC_ERROR = (1 << 31)
36 };
37 
41 
44 typedef const struct rpmfcTokens_s * rpmfcToken;
45 
52 void rpmfcPrint(const char * msg, rpmfc fc, FILE * fp);
53 
60 
67 rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags);
68 
75 rpmfc rpmfcNew(void);
76 
77 
85 rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t * fmode);
86 
93 
100 
107 
114 
121 
128 
135 
142 
149 
157 
158 #ifdef __cplusplus
159 }
160 #endif
161 
162 #endif /* _H_RPMFC_ */
rpmfc rpmfcFree(rpmfc fc)
Destroy a file classifier.
rpmds rpmfcSupplements(rpmfc fc)
Retrieve file classification supplements.
rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags)
Create a file classifier.
char ** ARGV_t
Definition: argv.h:17
rpmds rpmfcRecommends(rpmfc fc)
Retrieve file classification recommends.
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:81
void rpmfcPrint(const char *msg, rpmfc fc, FILE *fp)
Print results of file classification.
FCOLOR_e
Definition: rpmfc.h:25
uint32_t rpmFlags
Definition: rpmtypes.h:42
int _rpmfc_debug
struct rpmfc_s * rpmfc
Definition: rpmfc.h:21
rpmds rpmfcDependencies(rpmfc fc, rpmTagVal tagN)
Retrieve file classification dependencies.
rpmds rpmfcRequires(rpmfc fc)
Retrieve file classification requires.
rpmFlags FCOLOR_t
Definition: rpmfc.h:40
rpmds rpmfcObsoletes(rpmfc fc)
Retrieve file classification obsoletes.
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t *fmode)
Build file class dictionary and mappings.
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmds rpmfcSuggests(rpmfc fc)
Retrieve file classification suggests.
rpmds rpmfcConflicts(rpmfc fc)
Retrieve file classification conflicts.
rpmds rpmfcProvides(rpmfc fc)
Retrieve file classification provides.
RPM_GNUC_DEPRECATED rpmfc rpmfcNew(void)
rpmds rpmfcEnhances(rpmfc fc)
Retrieve file classification enhances.
uint16_t rpm_mode_t
Definition: rpmtypes.h:53
rpmRC rpmfcApply(rpmfc fc)
Build file/package dependency dictionary and mappings.
const struct rpmfcTokens_s * rpmfcToken
Definition: rpmfc.h:44
enum rpmRC_e rpmRC
Package read return codes.
#define RPMFC_ELF
Definition: rpmfc.h:30