rpmfc.h
Go to the documentation of this file.
#ifndef _H_RPMFC_
#define _H_RPMFC_
#include <rpm/rpmtypes.h>
#include <rpm/argv.h> /* for ARGV_t */
#include <rpm/rpmspec.h> /* for Package */
#ifdef __cplusplus
extern "C" {
#endif
extern int _rpmfc_debug;
typedef struct rpmfc_s * rpmfc;
enum FCOLOR_e {
RPMFC_BLACK = 0,
RPMFC_ELF32 = (1 << 0),
RPMFC_ELF64 = (1 << 1),
RPMFC_ELFMIPSN32 = (1 << 2),
#define RPMFC_ELF (RPMFC_ELF32|RPMFC_ELF64|RPMFC_ELFMIPSN32)
/* (1 << 3) leaks into package headers, reserved */
RPMFC_WHITE = (1 << 29),
RPMFC_INCLUDE = (1 << 30),
RPMFC_ERROR = (1 << 31)
};
typedef rpmFlags FCOLOR_t;
typedef const struct rpmfcTokens_s * rpmfcToken;
void rpmfcPrint(const char * msg, rpmfc fc, FILE * fp);
rpmfc rpmfcFree(rpmfc fc);
rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags);
RPM_GNUC_DEPRECATED
rpmfc rpmfcNew(void);
rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t * fmode);
rpmRC rpmfcApply(rpmfc fc);
rpmds rpmfcProvides(rpmfc fc);
rpmds rpmfcRequires(rpmfc fc);
rpmds rpmfcRecommends(rpmfc fc);
rpmds rpmfcSuggests(rpmfc fc);
rpmds rpmfcSupplements(rpmfc fc);
rpmds rpmfcEnhances(rpmfc fc);
rpmds rpmfcConflicts(rpmfc fc);
rpmds rpmfcObsoletes(rpmfc fc);
rpmds rpmfcOrderWithRequires(rpmfc fc);
rpmds rpmfcDependencies(rpmfc fc, rpmTagVal tagN);
#ifdef __cplusplus
}
#endif
#endif /* _H_RPMFC_ */
ARGV_t
char ** ARGV_t
Definition: argv.h:17
rpmfcDependencies
rpmds rpmfcDependencies(rpmfc fc, rpmTagVal tagN)
Retrieve file classification dependencies.
rpmfcRequires
rpmds rpmfcRequires(rpmfc fc)
Retrieve file classification requires.
rpmfcEnhances
rpmds rpmfcEnhances(rpmfc fc)
Retrieve file classification enhances.
rpmfcOrderWithRequires
rpmds rpmfcOrderWithRequires(rpmfc fc)
Retrieve file classification OrderWithRequires.
rpmfcCreate
rpmfc rpmfcCreate(const char *rootDir, rpmFlags flags)
Create a file classifier.
rpmfcClassify
rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t *fmode)
Build file class dictionary and mappings.
rpmfcSuggests
rpmds rpmfcSuggests(rpmfc fc)
Retrieve file classification suggests.
rpmfcObsoletes
rpmds rpmfcObsoletes(rpmfc fc)
Retrieve file classification obsoletes.
rpmfcApply
rpmRC rpmfcApply(rpmfc fc)
Build file/package dependency dictionary and mappings.
FCOLOR_t
rpmFlags FCOLOR_t
Definition: rpmfc.h:40
rpmfcSupplements
rpmds rpmfcSupplements(rpmfc fc)
Retrieve file classification supplements.
rpmfcNew
RPM_GNUC_DEPRECATED rpmfc rpmfcNew(void)
rpmfcFree
rpmfc rpmfcFree(rpmfc fc)
Destroy a file classifier.
rpmfcPrint
void rpmfcPrint(const char *msg, rpmfc fc, FILE *fp)
Print results of file classification.
rpmfcRecommends
rpmds rpmfcRecommends(rpmfc fc)
Retrieve file classification recommends.
FCOLOR_e
FCOLOR_e
Definition: rpmfc.h:25
rpmfcProvides
rpmds rpmfcProvides(rpmfc fc)
Retrieve file classification provides.
rpmfcToken
const struct rpmfcTokens_s * rpmfcToken
Definition: rpmfc.h:44
rpmfcConflicts
rpmds rpmfcConflicts(rpmfc fc)
Retrieve file classification conflicts.
rpmfc
struct rpmfc_s * rpmfc
Definition: rpmfc.h:21
RPMFC_ELFMIPSN32
@ RPMFC_ELFMIPSN32
Definition: rpmfc.h:29
RPMFC_WHITE
@ RPMFC_WHITE
Definition: rpmfc.h:33
RPMFC_ELF32
@ RPMFC_ELF32
Definition: rpmfc.h:27
RPMFC_ELF64
@ RPMFC_ELF64
Definition: rpmfc.h:28
RPMFC_BLACK
@ RPMFC_BLACK
Definition: rpmfc.h:26
RPMFC_ERROR
@ RPMFC_ERROR
Definition: rpmfc.h:35
RPMFC_INCLUDE
@ RPMFC_INCLUDE
Definition: rpmfc.h:34
rpmTagVal
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
rpmRC
enum rpmRC_e rpmRC
Package read return codes.
rpmds
struct rpmds_s * rpmds
Definition: rpmtypes.h:65
rpm_mode_t
uint16_t rpm_mode_t
Definition: rpmtypes.h:53
RPMFC_ELF
#define RPMFC_ELF
Definition: rpmfc.h:30
_rpmfc_debug
int _rpmfc_debug
RPM_GNUC_DEPRECATED
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:81