rpm 4.20.1 The RPM Package Manager

Loading...
Searching...
No Matches
rpmlib.h
Go to the documentation of this file.
1#ifndef H_RPMLIB
2#define H_RPMLIB
3
11#include <rpm/rpmio.h>
12#include <rpm/header.h>
13#include <rpm/rpmtag.h>
14#include <rpm/rpmds.h> /* XXX move rpmlib provides to rpmds instead */
15#include <rpm/rpmver.h>
16
17#ifdef _RPM_4_4_COMPAT
18#error RPM 4.4.x compatibility layer has been removed in RPM >= 4.14
19#endif
20
21#ifdef __cplusplus
22 extern "C" {
23#endif
24
25 extern struct rpmMacroContext_s * rpmGlobalMacroContext;
26
27 extern struct rpmMacroContext_s * rpmCLIMacroContext;
28
29 extern const char * const RPMVERSION;
30
31 extern const char * const rpmNAME;
32
33 extern const char * const rpmEVR;
34
35 extern const int rpmFLAGS;
36
37/* ==================================================================== */
44 enum rpm_machtable_e {
45 RPM_MACHTABLE_INSTARCH = 0,
46 RPM_MACHTABLE_INSTOS = 1,
47 RPM_MACHTABLE_BUILDARCH = 2,
48 RPM_MACHTABLE_BUILDOS = 3
49};
50#define RPM_MACHTABLE_COUNT 4
58 int rpmReadConfigFiles(const char * file,
59 const char * target);
60
67 void rpmGetArchInfo( const char ** name,
68 int * num);
69
75 int rpmGetArchColor(const char *arch);
76
83 void rpmGetOsInfo( const char ** name,
84 int * num);
85
99 int rpmMachineScore(int type, const char * name);
100
106 int rpmShowRC(FILE * fp);
107
112 void rpmFreeRpmrc(void);
113
120 int rpmVersionCompare(Header first, Header second);
121
135 rpmRC headerCheck(rpmts ts, const void * uh, size_t uc, char ** msg);
136
145 rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char ** msg);
146
155 rpmRC rpmReadPackageFile(rpmts ts, FD_t fd,
156 const char * fn, Header * hdrp);
157
166 rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd,
167 char ** specFilePtr,
168 char ** cookie);
169
170#ifdef __cplusplus
171}
172#endif
173
174#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