rpmlib.h
Go to the documentation of this file.
#ifndef H_RPMLIB
#define H_RPMLIB
#include <popt.h>
#include <rpm/rpmio.h>
#include <rpm/header.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmds.h> /* XXX move rpmlib provides to rpmds instead */
#include <rpm/rpmpgp.h>
#ifdef _RPM_4_4_COMPAT
#include <rpm/rpmlegacy.h> /* legacy compat definitions if enabled */
#endif
#ifdef __cplusplus
extern "C" {
#endif
extern struct rpmMacroContext_s * rpmGlobalMacroContext;
extern struct rpmMacroContext_s * rpmCLIMacroContext;
extern const char * const RPMVERSION;
extern const char * const rpmNAME;
extern const char * const rpmEVR;
extern const int rpmFLAGS;
/* ==================================================================== */
enum rpm_machtable_e {
RPM_MACHTABLE_INSTARCH = 0,
RPM_MACHTABLE_INSTOS = 1,
RPM_MACHTABLE_BUILDARCH = 2,
RPM_MACHTABLE_BUILDOS = 3
};
#define RPM_MACHTABLE_COUNT 4
int rpmReadConfigFiles(const char * file,
const char * target);
void rpmGetArchInfo( const char ** name,
int * num);
int rpmGetArchColor(const char *arch);
void rpmGetOsInfo( const char ** name,
int * num);
int rpmMachineScore(int type, const char * name);
int rpmShowRC(FILE * fp);
void rpmFreeRpmrc(void);
int rpmVersionCompare(Header first, Header second);
rpmRC headerCheck(rpmts ts, const void * uh, size_t uc, char ** msg);
rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char ** msg);
rpmRC rpmReadPackageFile(rpmts ts, FD_t fd,
const char * fn, Header * hdrp);
rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd,
char ** specFilePtr,
char ** cookie);
int rpmvercmp(const char * a, const char * b);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMLIB */