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);
#ifdef __cplusplus
}
#endif
#endif /* _H_RPMFC_ */