Loading...
Searching...
No Matches
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/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 */
headerCheck
rpmRC headerCheck(rpmts ts, const void *uh, size_t uc, char **msg)
rpmReadPackageFile
rpmRC rpmReadPackageFile(rpmts ts, FD_t fd, const char *fn, Header *hdrp)
rpmReadHeader
rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char **msg)
rpmMachineScore
int rpmMachineScore(int type, const char *name)
rpmShowRC
int rpmShowRC(FILE *fp)
rpmGetOsInfo
void rpmGetOsInfo(const char **name, int *num)
rpmGetArchColor
int rpmGetArchColor(const char *arch)
rpm_machtable_e
rpm_machtable_e
Definition rpmlib.h:44
rpmReadConfigFiles
int rpmReadConfigFiles(const char *file, const char *target)
rpmGetArchInfo
void rpmGetArchInfo(const char **name, int *num)
rpmFreeRpmrc
void rpmFreeRpmrc(void)
RPM_MACHTABLE_INSTARCH
@ RPM_MACHTABLE_INSTARCH
Definition rpmlib.h:45
RPM_MACHTABLE_INSTOS
@ RPM_MACHTABLE_INSTOS
Definition rpmlib.h:46
RPM_MACHTABLE_BUILDOS
@ RPM_MACHTABLE_BUILDOS
Definition rpmlib.h:48
RPM_MACHTABLE_BUILDARCH
@ RPM_MACHTABLE_BUILDARCH
Definition rpmlib.h:47
rpmInstallSourcePackage
rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd, char **specFilePtr, char **cookie)
FD_t
struct _FD_s * FD_t
Definition rpmtypes.h:99
rpmts
struct rpmts_s * rpmts
Definition rpmtypes.h:63
rpmRC
enum rpmRC_e rpmRC
Header
struct headerToken_s * Header
Definition rpmtypes.h:24
header.h
rpmds.h
rpmio.h
rpmVersionCompare
int rpmVersionCompare(Header first, Header second)
rpmtag.h