rpm 4.10.90

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmlib.h
Go to the documentation of this file.

    00001 #ifndef H_RPMLIB
    00002 #define H_RPMLIB
    00003
    00011 #include <popt.h>
    00012
    00013 #include <rpm/rpmio.h>
    00014 #include <rpm/header.h>
    00015 #include <rpm/rpmtag.h>
    00016 #include <rpm/rpmds.h>  /* XXX move rpmlib provides to rpmds instead */
    00017 #include <rpm/rpmpgp.h>
    00018 #ifdef _RPM_4_4_COMPAT
    00019 #include <rpm/rpmlegacy.h> /* legacy compat definitions if enabled */
    00020 #endif
    00021
    00022 #ifdef __cplusplus
    00023 extern "C" {
    00024 #endif
    00025
    00026 extern struct rpmMacroContext_s * rpmGlobalMacroContext;
    00027
    00028 extern struct rpmMacroContext_s * rpmCLIMacroContext;
    00029
    00030 extern const char * const RPMVERSION;
    00031
    00032 extern const char * const rpmNAME;
    00033
    00034 extern const char * const rpmEVR;
    00035
    00036 extern const int rpmFLAGS;
    00037
    00038 /* ==================================================================== */
    00045 enum rpm_machtable_e {
    00046     RPM_MACHTABLE_INSTARCH      = 0,
    00047     RPM_MACHTABLE_INSTOS        = 1,
    00048     RPM_MACHTABLE_BUILDARCH     = 2,
    00049     RPM_MACHTABLE_BUILDOS       = 3
    00050 };
    00051 #define RPM_MACHTABLE_COUNT     4
    00059 int rpmReadConfigFiles(const char * file,
    00060                 const char * target);
    00061
    00068 void rpmGetArchInfo( const char ** name,
    00069                 int * num);
    00070
    00076 int rpmGetArchColor(const char *arch);
    00077
    00084 void rpmGetOsInfo( const char ** name,
    00085                 int * num);
    00086
    00100 int rpmMachineScore(int type, const char * name);
    00101
    00107 int rpmShowRC(FILE * fp);
    00108
    00113 void rpmFreeRpmrc(void);
    00114
    00121 int rpmVersionCompare(Header first, Header second);
    00122
    00136 rpmRC headerCheck(rpmts ts, const void * uh, size_t uc, char ** msg);
    00137
    00146 rpmRC rpmReadHeader(rpmts ts, FD_t fd, Header *hdrp, char ** msg);
    00147
    00156 rpmRC rpmReadPackageFile(rpmts ts, FD_t fd,
    00157                 const char * fn, Header * hdrp);
    00158
    00167 rpmRC rpmInstallSourcePackage(rpmts ts, FD_t fd,
    00168                         char ** specFilePtr,
    00169                         char ** cookie);
    00170
    00178 int rpmvercmp(const char * a, const char * b);
    00179
    00180 #ifdef __cplusplus
    00181 }
    00182 #endif
    00183
    00184 #endif  /* H_RPMLIB */