13 #include <rpm/rpmio.h> 14 #include <rpm/header.h> 15 #include <rpm/rpmtag.h> 16 #include <rpm/rpmds.h> 17 #include <rpm/rpmpgp.h> 18 #ifdef _RPM_4_4_COMPAT 19 #include <rpm/rpmlegacy.h> 32 extern const char *
const rpmNAME;
34 extern const char *
const rpmEVR;
51 #define RPM_MACHTABLE_COUNT 4 59 int rpmReadConfigFiles(const char * file, 157 const char * fn,
Header * hdrp);
178 int rpmvercmp(
const char * a,
const char * b);
const char *const RPMVERSION
struct _FD_s * FD_t
RPM IO file descriptor type.
struct rpmMacroContext_s * rpmGlobalMacroContext
rpmRC headerCheck(rpmts ts, const void *uh, size_t uc, char **msg)
Check header consistency, performing headerGetEntry() the hard way.
rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char *fn, Header *hdrp)
Return package header from file handle, verifying digests/signatures.
int rpmVersionCompare(Header first, Header second)
Compare headers to determine which header is "newer".
int rpmMachineScore(int type, const char *name)
Return arch/os score of a name.
struct rpmMacroContext_s * rpmCLIMacroContext
void rpmGetOsInfo(const char **name, int *num)
Return current os name and/or number.
const char *const rpmNAME
int rpmGetArchColor(const char *arch)
Return color for an arch.
rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char **msg)
Return checked and loaded header.
int rpmShowRC(FILE *fp)
Display current rpmrc (and macro) configuration.
int rpmvercmp(const char *a, const char *b)
Segmented string compare for version or release strings.
void rpmGetArchInfo(const char **name, int *num)
Return current arch name and/or number.
rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, char **specFilePtr, char **cookie)
Install source package.
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
void rpmFreeRpmrc(void)
Destroy rpmrc arch/os compatibility tables.
enum rpmRC_e rpmRC
Package read return codes.
rpm_machtable_e
Build and install arch/os table identifiers.
struct headerToken_s * Header
RPM header and data retrieval types.