rpm  4.18.0
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 
76 
77 
86 
93 
100 
107 
114 
121 
128 
135 
142 
149 
156 
164 
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 #endif /* _H_RPMFC_ */
Argument Manipulation API.
char ** ARGV_t
Definition: argv.h:17
rpmds rpmfcDependencies(rpmfc fc, rpmTagVal tagN)
Retrieve file classification dependencies.
rpmds rpmfcRequires(rpmfc fc)
Retrieve file classification requires.
rpmds rpmfcEnhances(rpmfc fc)
Retrieve file classification enhances.
rpmds rpmfcOrderWithRequires(rpmfc fc)
Retrieve file classification OrderWithRequires.
rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags)
Create a file classifier.
rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t *fmode)
Build file class dictionary and mappings.
rpmds rpmfcSuggests(rpmfc fc)
Retrieve file classification suggests.
rpmds rpmfcObsoletes(rpmfc fc)
Retrieve file classification obsoletes.
rpmRC rpmfcApply(rpmfc fc)
Build file/package dependency dictionary and mappings.
rpmFlags FCOLOR_t
Definition: rpmfc.h:40
rpmds rpmfcSupplements(rpmfc fc)
Retrieve file classification supplements.
RPM_GNUC_DEPRECATED rpmfc rpmfcNew(void)
rpmfc rpmfcFree(rpmfc fc)
Destroy a file classifier.
void rpmfcPrint(const char *msg, rpmfc fc, FILE *fp)
Print results of file classification.
rpmds rpmfcRecommends(rpmfc fc)
Retrieve file classification recommends.
FCOLOR_e
Definition: rpmfc.h:25
rpmds rpmfcProvides(rpmfc fc)
Retrieve file classification provides.
const struct rpmfcTokens_s * rpmfcToken
Definition: rpmfc.h:44
rpmds rpmfcConflicts(rpmfc fc)
Retrieve file classification conflicts.
struct rpmfc_s * rpmfc
Definition: rpmfc.h:21
@ RPMFC_ELFMIPSN32
Definition: rpmfc.h:29
@ RPMFC_WHITE
Definition: rpmfc.h:33
@ RPMFC_ELF32
Definition: rpmfc.h:27
@ RPMFC_ELF64
Definition: rpmfc.h:28
@ RPMFC_BLACK
Definition: rpmfc.h:26
@ RPMFC_ERROR
Definition: rpmfc.h:35
@ RPMFC_INCLUDE
Definition: rpmfc.h:34
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
uint32_t rpmFlags
Definition: rpmtypes.h:42
enum rpmRC_e rpmRC
Package read return codes.
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
uint16_t rpm_mode_t
Definition: rpmtypes.h:53
#define RPMFC_ELF
Definition: rpmfc.h:30
int _rpmfc_debug
The rpmSpec and Package data structures used during build.
Typedefs for RPM abstract data types.
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:81