rpm: rpmtag.h File Reference

rpm 4.10.0

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

- File List
- Globals

Defines | Typedefs | Enumerations | Functions
rpmtag.h File Reference
`#include <rpm/rpmtypes.h>`
Include dependency graph for rpmtag.h:

Go to the source code of this file.

## Defines
#define | HEADER_IMAGE 61
| Header private tags.
#define | HEADER_SIGNATURES 62
#define | HEADER_IMMUTABLE 63
#define | HEADER_REGIONS 64
#define | HEADER_I18NTABLE 100
#define | HEADER_SIGBASE 256
#define | HEADER_TAGBASE 1000
#define | RPMTAG_PKGID RPMTAG_SIGMD5
#define | RPMTAG_HDRID RPMTAG_SHA1HEADER
#define | RPMTAG_N RPMTAG_NAME
#define | RPMTAG_V RPMTAG_VERSION
#define | RPMTAG_R RPMTAG_RELEASE
#define | RPMTAG_E RPMTAG_EPOCH
#define | RPMTAG_FILEMD5S RPMTAG_FILEDIGESTS
#define | RPMTAG_PROVIDES RPMTAG_PROVIDENAME
#define | RPMTAG_P RPMTAG_PROVIDENAME
#define | RPMTAG_REQUIRES RPMTAG_REQUIRENAME
#define | RPMTAG_CONFLICTS RPMTAG_CONFLICTNAME
#define | RPMTAG_C RPMTAG_CONFLICTNAME
#define | RPMTAG_OBSOLETES RPMTAG_OBSOLETENAME
#define | RPMTAG_O RPMTAG_OBSOLETENAME
#define | RPMTAG_SUGGESTS RPMTAG_SUGGESTSNAME
#define | RPMTAG_ENHANCES RPMTAG_ENHANCESNAME
#define | RPMTAG_SVNID RPMTAG_CVSID
#define | RPMTAG_EXTERNAL_TAG 1000000
#define | RPM_MIN_TYPE 0
#define | RPM_MAX_TYPE 9
#define | RPM_FORCEFREE_TYPE 0xff
#define | RPM_MASK_TYPE 0x0000ffff
## Typedefs
typedef enum rpmTag_e | rpmTag
| Tags identify data in package headers.
typedef enum rpmDbiTag_e | rpmDbiTag
| Rpm database index tags.
typedef enum rpmSigTag_e | rpmSigTag
| Tags found in signature header from package.
typedef enum rpmTagType_e | rpmTagType
| The basic types of data in tags from headers.
typedef enum rpmTagClass_e | rpmTagClass
| The classes of data in tags from headers.
typedef enum rpmSubTagType_e | rpmSubTagType
| New rpm data types under consideration/development.
typedef rpmFlags | rpmTagReturnType
## Enumerations
enum | rpmTag_e { RPMTAG_NOT_FOUND = -1, RPMTAG_HEADERIMAGE = 61, RPMTAG_HEADERSIGNATURES = 62, RPMTAG_HEADERIMMUTABLE = 63, RPMTAG_HEADERREGIONS = 64, RPMTAG_HEADERI18NTABLE = 100, RPMTAG_SIG_BASE = 256, RPMTAG_SIGSIZE = RPMTAG_SIG_BASE+1, RPMTAG_SIGLEMD5_1 = RPMTAG_SIG_BASE+2, RPMTAG_SIGPGP = RPMTAG_SIG_BASE+3, RPMTAG_SIGLEMD5_2 = RPMTAG_SIG_BASE+4, RPMTAG_SIGMD5 = RPMTAG_SIG_BASE+5 }
| Tags identify data in package headers. More...
enum | rpmDbiTag_e { RPMDBI_PACKAGES = 0, RPMDBI_LABEL = 2, RPMDBI_NAME = RPMTAG_NAME, RPMDBI_BASENAMES = RPMTAG_BASENAMES, RPMDBI_GROUP = RPMTAG_GROUP, RPMDBI_REQUIRENAME = RPMTAG_REQUIRENAME, RPMDBI_PROVIDENAME = RPMTAG_PROVIDENAME, RPMDBI_CONFLICTNAME = RPMTAG_CONFLICTNAME, RPMDBI_OBSOLETENAME = RPMTAG_OBSOLETENAME, RPMDBI_TRIGGERNAME = RPMTAG_TRIGGERNAME, RPMDBI_DIRNAMES = RPMTAG_DIRNAMES, RPMDBI_INSTALLTID = RPMTAG_INSTALLTID, RPMDBI_SIGMD5 = RPMTAG_SIGMD5, RPMDBI_SHA1HEADER = RPMTAG_SHA1HEADER, RPMDBI_INSTFILENAMES = RPMTAG_INSTFILENAMES }
| Rpm database index tags. More...
enum | rpmSigTag_e { RPMSIGTAG_SIZE = 1000, RPMSIGTAG_LEMD5_1 = 1001, RPMSIGTAG_PGP = 1002, RPMSIGTAG_LEMD5_2 = 1003, RPMSIGTAG_MD5 = 1004, RPMSIGTAG_GPG = 1005, RPMSIGTAG_PGP5 = 1006, RPMSIGTAG_PAYLOADSIZE = 1007, RPMSIGTAG_BADSHA1_1 = RPMTAG_BADSHA1_1, RPMSIGTAG_BADSHA1_2 = RPMTAG_BADSHA1_2, RPMSIGTAG_SHA1 = RPMTAG_SHA1HEADER, RPMSIGTAG_DSA = RPMTAG_DSAHEADER, RPMSIGTAG_RSA = RPMTAG_RSAHEADER, RPMSIGTAG_LONGSIZE = RPMTAG_LONGSIGSIZE, RPMSIGTAG_LONGARCHIVESIZE = RPMTAG_LONGARCHIVESIZE }
| Tags found in signature header from package. More...
enum | rpmTagType_e
| The basic types of data in tags from headers. More...
enum | rpmTagClass_e { RPM_NULL_CLASS = 0, RPM_NUMERIC_CLASS = 1, RPM_STRING_CLASS = 2, RPM_BINARY_CLASS = 3 }
| The classes of data in tags from headers. More...
enum | rpmSubTagType_e { RPM_REGION_TYPE = -10, RPM_BIN_ARRAY_TYPE = -11, RPM_XREF_TYPE = -12 }
| New rpm data types under consideration/development. More...
enum | rpmTagReturnType_e { RPM_ANY_RETURN_TYPE = 0, RPM_SCALAR_RETURN_TYPE = 0x00010000, RPM_ARRAY_RETURN_TYPE = 0x00020000, RPM_MAPPING_RETURN_TYPE = 0x00040000, RPM_MASK_RETURN_TYPE = 0xffff0000 }
| * Identify how to return the header data type. More...
## Functions
const char * | rpmTagGetName (rpmTagVal tag)
| Return tag name from value.
rpmTagType | rpmTagGetType (rpmTagVal tag)
| Return tag data type from value.
rpmTagType | rpmTagGetTagType (rpmTagVal tag)
| Return tag data type from value.
rpmTagReturnType | rpmTagGetReturnType (rpmTagVal tag)
| Return tag data type from value.
rpmTagClass | rpmTagGetClass (rpmTagVal tag)
| Return tag data class from value.
rpmTagVal | rpmTagGetValue (const char *tagstr)
| Return tag value from name.
rpmTagClass | rpmTagTypeGetClass (rpmTagType type)
| Return data class of type.
int | rpmTagGetNames (rpmtd tagnames, int fullname)
| Return known rpm tag names, sorted by name.

## Define Documentation

#define HEADER_I18NTABLE 100

Definition at line 18 of file rpmtag.h.

#define HEADER_IMAGE 61

Header private tags.

Note:
  General use tags should start at 1000 (RPM's tag space starts there).

Definition at line 14 of file rpmtag.h.

#define HEADER_IMMUTABLE 63

Definition at line 16 of file rpmtag.h.

#define HEADER_REGIONS 64

Definition at line 17 of file rpmtag.h.

#define HEADER_SIGBASE 256

Definition at line 19 of file rpmtag.h.

#define HEADER_SIGNATURES 62

Definition at line 15 of file rpmtag.h.

#define HEADER_TAGBASE 1000

Definition at line 20 of file rpmtag.h.

#define RPM_FORCEFREE_TYPE 0xff

Definition at line 375 of file rpmtag.h.

#define RPM_MASK_TYPE 0x0000ffff

Definition at line 376 of file rpmtag.h.

#define RPM_MAX_TYPE 9

Definition at line 374 of file rpmtag.h.

#define RPM_MIN_TYPE 0

Definition at line 363 of file rpmtag.h.

#define RPMTAG_C RPMTAG_CONFLICTNAME

Definition at line 125 of file rpmtag.h.

#define RPMTAG_CONFLICTS RPMTAG_CONFLICTNAME

Definition at line 124 of file rpmtag.h.

#define RPMTAG_E RPMTAG_EPOCH

Definition at line 68 of file rpmtag.h.

#define RPMTAG_ENHANCES RPMTAG_ENHANCESNAME

Definition at line 225 of file rpmtag.h.

#define RPMTAG_EXTERNAL_TAG 1000000

Definition at line 314 of file rpmtag.h.

#define RPMTAG_FILEMD5S RPMTAG_FILEDIGESTS

Definition at line 101 of file rpmtag.h.

#define RPMTAG_HDRID RPMTAG_SHA1HEADER

Definition at line 57 of file rpmtag.h.

#define RPMTAG_N RPMTAG_NAME

Definition at line 62 of file rpmtag.h.

#define RPMTAG_O RPMTAG_OBSOLETENAME

Definition at line 154 of file rpmtag.h.

#define RPMTAG_OBSOLETES RPMTAG_OBSOLETENAME

Definition at line 153 of file rpmtag.h.

#define RPMTAG_P RPMTAG_PROVIDENAME

Definition at line 115 of file rpmtag.h.

#define RPMTAG_PKGID RPMTAG_SIGMD5

Definition at line 47 of file rpmtag.h.

#define RPMTAG_PROVIDES RPMTAG_PROVIDENAME

Definition at line 114 of file rpmtag.h.

#define RPMTAG_R RPMTAG_RELEASE

Definition at line 66 of file rpmtag.h.

#define RPMTAG_REQUIRES RPMTAG_REQUIRENAME

Definition at line 118 of file rpmtag.h.

#define RPMTAG_SUGGESTS RPMTAG_SUGGESTSNAME

Definition at line 221 of file rpmtag.h.

#define RPMTAG_SVNID RPMTAG_CVSID

Definition at line 230 of file rpmtag.h.

#define RPMTAG_V RPMTAG_VERSION

Definition at line 64 of file rpmtag.h.

## Typedef Documentation

typedef rpmFlags rpmTagReturnType

Definition at line 418 of file rpmtag.h.