rpmlib.h
Go to the documentation of this file.
#ifndef H_RPMLIB
#define H_RPMLIB
#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>
#include <rpm/rpmver.h>
#ifdef _RPM_4_4_COMPAT
#error RPM 4.4.x compatibility layer has been removed in RPM >= 4.14
#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);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMLIB */
rpmts
struct rpmts_s * rpmts
Definition: rpmtypes.h:63
headerCheck
rpmRC headerCheck(rpmts ts, const void *uh, size_t uc, char **msg)
rpmFreeRpmrc
void rpmFreeRpmrc(void)
rpmMachineScore
int rpmMachineScore(int type, const char *name)
rpmGetArchColor
int rpmGetArchColor(const char *arch)
rpmGetOsInfo
void rpmGetOsInfo(const char **name, int *num)
rpmReadPackageFile
rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char *fn, Header *hdrp)
RPM_MACHTABLE_INSTOS
@ RPM_MACHTABLE_INSTOS
Definition: rpmlib.h:47
rpmEVR
const char *const rpmEVR
rpmRC
enum rpmRC_e rpmRC
rpmCLIMacroContext
struct rpmMacroContext_s * rpmCLIMacroContext
rpmInstallSourcePackage
rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, char **specFilePtr, char **cookie)
rpmGetArchInfo
void rpmGetArchInfo(const char **name, int *num)
rpmReadHeader
rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char **msg)
rpmShowRC
int rpmShowRC(FILE *fp)
RPMVERSION
const char *const RPMVERSION
FD_t
struct _FD_s * FD_t
Definition: rpmtypes.h:99
RPM_MACHTABLE_BUILDARCH
@ RPM_MACHTABLE_BUILDARCH
Definition: rpmlib.h:48
rpm_machtable_e
rpm_machtable_e
Definition: rpmlib.h:45
rpmVersionCompare
int rpmVersionCompare(Header first, Header second)
Compare headers to determine which header is "newer".
rpmNAME
const char *const rpmNAME
Header
struct headerToken_s * Header
Definition: rpmtypes.h:24
rpmFLAGS
const int rpmFLAGS
RPM_MACHTABLE_INSTARCH
@ RPM_MACHTABLE_INSTARCH
Definition: rpmlib.h:46
rpmGlobalMacroContext
struct rpmMacroContext_s * rpmGlobalMacroContext
RPM_MACHTABLE_BUILDOS
@ RPM_MACHTABLE_BUILDOS
Definition: rpmlib.h:49