Loading...
Searching...
No Matches
rpmtag.h
Go to the documentation of this file.
#ifndef _RPMTAG_H
#define _RPMTAG_H
#include <rpm/rpmtypes.h>
#ifdef __cplusplus
extern "C" {
#endif
#define HEADER_IMAGE 61
#define HEADER_SIGNATURES 62
#define HEADER_IMMUTABLE 63
#define HEADER_REGIONS 64
#define HEADER_I18NTABLE 100
#define HEADER_SIGBASE 256
#define HEADER_TAGBASE 1000
typedef enum rpmTag_e {
RPMTAG_HEADERIMAGE = HEADER_IMAGE,
RPMTAG_HEADERSIGNATURES = HEADER_SIGNATURES,
RPMTAG_HEADERIMMUTABLE = HEADER_IMMUTABLE,
RPMTAG_HEADERREGIONS = HEADER_REGIONS,
RPMTAG_HEADERI18NTABLE = HEADER_I18NTABLE, /* s[] !< I18N string locales. */
/* Retrofit (and uniqify) signature tags for use by rpmTagGetName() and rpmQuery. */
/* the md5 sum was broken *twice* on big endian machines */
/* XXX 2nd underscore prevents tagTable generation */
RPMTAG_SIG_BASE = HEADER_SIGBASE,
RPMTAG_SIGSIZE = RPMTAG_SIG_BASE+1, /* i */
RPMTAG_SIGLEMD5_1 = RPMTAG_SIG_BASE+2, /* internal - obsolete */
RPMTAG_SIGPGP = RPMTAG_SIG_BASE+3, /* x */
RPMTAG_SIGLEMD5_2 = RPMTAG_SIG_BASE+4, /* x internal - obsolete */
RPMTAG_SIGMD5 = RPMTAG_SIG_BASE+5, /* x */
#define RPMTAG_PKGID RPMTAG_SIGMD5 /* x */
RPMTAG_SIGGPG = RPMTAG_SIG_BASE+6, /* x */
RPMTAG_SIGPGP5 = RPMTAG_SIG_BASE+7, /* internal - obsolete */
RPMTAG_BADSHA1_1 = RPMTAG_SIG_BASE+8, /* internal - obsolete */
RPMTAG_BADSHA1_2 = RPMTAG_SIG_BASE+9, /* internal - obsolete */
RPMTAG_PUBKEYS = RPMTAG_SIG_BASE+10, /* s[] */
RPMTAG_DSAHEADER = RPMTAG_SIG_BASE+11, /* x */
RPMTAG_RSAHEADER = RPMTAG_SIG_BASE+12, /* x */
RPMTAG_SHA1HEADER = RPMTAG_SIG_BASE+13, /* s */
#define RPMTAG_HDRID RPMTAG_SHA1HEADER /* s */
RPMTAG_LONGSIGSIZE = RPMTAG_SIG_BASE+14, /* l */
RPMTAG_LONGARCHIVESIZE = RPMTAG_SIG_BASE+15, /* l */
/* RPMTAG_SIG_BASE+16 reserved */
RPMTAG_SHA256HEADER = RPMTAG_SIG_BASE+17, /* s */
/* RPMTAG_SIG_BASE+18 reserved for RPMSIGTAG_FILESIGNATURES */
/* RPMTAG_SIG_BASE+19 reserved for RPMSIGTAG_FILESIGNATURELENGTH */
RPMTAG_VERITYSIGNATURES = RPMTAG_SIG_BASE+20, /* s[] */
RPMTAG_VERITYSIGNATUREALGO = RPMTAG_SIG_BASE+21, /* i */
RPMTAG_NAME = 1000, /* s */
#define RPMTAG_N RPMTAG_NAME /* s */
RPMTAG_VERSION = 1001, /* s */
#define RPMTAG_V RPMTAG_VERSION /* s */
RPMTAG_RELEASE = 1002, /* s */
#define RPMTAG_R RPMTAG_RELEASE /* s */
RPMTAG_EPOCH = 1003, /* i */
#define RPMTAG_E RPMTAG_EPOCH /* i */
RPMTAG_SUMMARY = 1004, /* s{} */
RPMTAG_DESCRIPTION = 1005, /* s{} */
RPMTAG_BUILDTIME = 1006, /* i */
RPMTAG_BUILDHOST = 1007, /* s */
RPMTAG_INSTALLTIME = 1008, /* i */
RPMTAG_SIZE = 1009, /* i */
RPMTAG_DISTRIBUTION = 1010, /* s */
RPMTAG_VENDOR = 1011, /* s */
RPMTAG_GIF = 1012, /* x */
RPMTAG_XPM = 1013, /* x */
RPMTAG_LICENSE = 1014, /* s */
RPMTAG_PACKAGER = 1015, /* s */
RPMTAG_GROUP = 1016, /* s{} */
RPMTAG_CHANGELOG = 1017, /* s[] internal */
RPMTAG_SOURCE = 1018, /* s[] */
RPMTAG_PATCH = 1019, /* s[] */
RPMTAG_URL = 1020, /* s */
RPMTAG_OS = 1021, /* s legacy used int */
RPMTAG_ARCH = 1022, /* s legacy used int */
RPMTAG_PREIN = 1023, /* s */
RPMTAG_POSTIN = 1024, /* s */
RPMTAG_PREUN = 1025, /* s */
RPMTAG_POSTUN = 1026, /* s */
RPMTAG_OLDFILENAMES = 1027, /* s[] obsolete */
RPMTAG_FILESIZES = 1028, /* i[] */
RPMTAG_FILESTATES = 1029, /* c[] */
RPMTAG_FILEMODES = 1030, /* h[] */
RPMTAG_FILEUIDS = 1031, /* i[] internal - obsolete */
RPMTAG_FILEGIDS = 1032, /* i[] internal - obsolete */
RPMTAG_FILERDEVS = 1033, /* h[] */
RPMTAG_FILEMTIMES = 1034, /* i[] */
RPMTAG_FILEDIGESTS = 1035, /* s[] */
#define RPMTAG_FILEMD5S RPMTAG_FILEDIGESTS /* s[] */
RPMTAG_FILELINKTOS = 1036, /* s[] */
RPMTAG_FILEFLAGS = 1037, /* i[] */
RPMTAG_ROOT = 1038, /* internal - obsolete */
RPMTAG_FILEUSERNAME = 1039, /* s[] */
RPMTAG_FILEGROUPNAME = 1040, /* s[] */
RPMTAG_EXCLUDE = 1041, /* internal - obsolete */
RPMTAG_EXCLUSIVE = 1042, /* internal - obsolete */
RPMTAG_ICON = 1043, /* x */
RPMTAG_SOURCERPM = 1044, /* s */
RPMTAG_FILEVERIFYFLAGS = 1045, /* i[] */
RPMTAG_ARCHIVESIZE = 1046, /* i */
RPMTAG_PROVIDENAME = 1047, /* s[] */
#define RPMTAG_PROVIDES RPMTAG_PROVIDENAME /* s[] */
#define RPMTAG_P RPMTAG_PROVIDENAME /* s[] */
RPMTAG_REQUIREFLAGS = 1048, /* i[] */
RPMTAG_REQUIRENAME = 1049, /* s[] */
#define RPMTAG_REQUIRES RPMTAG_REQUIRENAME /* s[] */
RPMTAG_REQUIREVERSION = 1050, /* s[] */
RPMTAG_NOSOURCE = 1051, /* i[] */
RPMTAG_NOPATCH = 1052, /* i[] */
RPMTAG_CONFLICTFLAGS = 1053, /* i[] */
RPMTAG_CONFLICTNAME = 1054, /* s[] */
#define RPMTAG_CONFLICTS RPMTAG_CONFLICTNAME /* s[] */
#define RPMTAG_C RPMTAG_CONFLICTNAME /* s[] */
RPMTAG_CONFLICTVERSION = 1055, /* s[] */
RPMTAG_DEFAULTPREFIX = 1056, /* s internal - deprecated */
RPMTAG_BUILDROOT = 1057, /* s internal - obsolete */
RPMTAG_INSTALLPREFIX = 1058, /* s internal - deprecated */
RPMTAG_EXCLUDEARCH = 1059, /* s[] */
RPMTAG_EXCLUDEOS = 1060, /* s[] */
RPMTAG_EXCLUSIVEARCH = 1061, /* s[] */
RPMTAG_EXCLUSIVEOS = 1062, /* s[] */
RPMTAG_AUTOREQPROV = 1063, /* s internal */
RPMTAG_RPMVERSION = 1064, /* s */
RPMTAG_TRIGGERSCRIPTS = 1065, /* s[] */
RPMTAG_TRIGGERNAME = 1066, /* s[] */
RPMTAG_TRIGGERVERSION = 1067, /* s[] */
RPMTAG_TRIGGERFLAGS = 1068, /* i[] */
RPMTAG_TRIGGERINDEX = 1069, /* i[] */
RPMTAG_VERIFYSCRIPT = 1079, /* s */
RPMTAG_CHANGELOGTIME = 1080, /* i[] */
RPMTAG_CHANGELOGNAME = 1081, /* s[] */
RPMTAG_CHANGELOGTEXT = 1082, /* s[] */
RPMTAG_BROKENMD5 = 1083, /* internal - obsolete */
RPMTAG_PREREQ = 1084, /* internal */
RPMTAG_PREINPROG = 1085, /* s[] */
RPMTAG_POSTINPROG = 1086, /* s[] */
RPMTAG_PREUNPROG = 1087, /* s[] */
RPMTAG_POSTUNPROG = 1088, /* s[] */
RPMTAG_BUILDARCHS = 1089, /* s[] */
RPMTAG_OBSOLETENAME = 1090, /* s[] */
#define RPMTAG_OBSOLETES RPMTAG_OBSOLETENAME /* s[] */
#define RPMTAG_O RPMTAG_OBSOLETENAME /* s[] */
RPMTAG_VERIFYSCRIPTPROG = 1091, /* s[] */
RPMTAG_TRIGGERSCRIPTPROG = 1092, /* s[] */
RPMTAG_DOCDIR = 1093, /* internal */
RPMTAG_COOKIE = 1094, /* s */
RPMTAG_FILEDEVICES = 1095, /* i[] */
RPMTAG_FILEINODES = 1096, /* i[] */
RPMTAG_FILELANGS = 1097, /* s[] */
RPMTAG_PREFIXES = 1098, /* s[] */
RPMTAG_INSTPREFIXES = 1099, /* s[] */
RPMTAG_TRIGGERIN = 1100, /* internal */
RPMTAG_TRIGGERUN = 1101, /* internal */
RPMTAG_TRIGGERPOSTUN = 1102, /* internal */
RPMTAG_AUTOREQ = 1103, /* internal */
RPMTAG_AUTOPROV = 1104, /* internal */
RPMTAG_CAPABILITY = 1105, /* i internal - obsolete */
RPMTAG_SOURCEPACKAGE = 1106, /* i */
RPMTAG_OLDORIGFILENAMES = 1107, /* internal - obsolete */
RPMTAG_BUILDPREREQ = 1108, /* internal */
RPMTAG_BUILDREQUIRES = 1109, /* internal */
RPMTAG_BUILDCONFLICTS = 1110, /* internal */
RPMTAG_BUILDMACROS = 1111, /* internal - unused */
RPMTAG_PROVIDEFLAGS = 1112, /* i[] */
RPMTAG_PROVIDEVERSION = 1113, /* s[] */
RPMTAG_OBSOLETEFLAGS = 1114, /* i[] */
RPMTAG_OBSOLETEVERSION = 1115, /* s[] */
RPMTAG_DIRINDEXES = 1116, /* i[] */
RPMTAG_BASENAMES = 1117, /* s[] */
RPMTAG_DIRNAMES = 1118, /* s[] */
RPMTAG_ORIGDIRINDEXES = 1119, /* i[] relocation */
RPMTAG_ORIGBASENAMES = 1120, /* s[] relocation */
RPMTAG_ORIGDIRNAMES = 1121, /* s[] relocation */
RPMTAG_OPTFLAGS = 1122, /* s */
RPMTAG_DISTURL = 1123, /* s */
RPMTAG_PAYLOADFORMAT = 1124, /* s */
RPMTAG_PAYLOADCOMPRESSOR = 1125, /* s */
RPMTAG_PAYLOADFLAGS = 1126, /* s */
RPMTAG_INSTALLCOLOR = 1127, /* i transaction color when installed */
RPMTAG_INSTALLTID = 1128, /* i */
RPMTAG_REMOVETID = 1129, /* i */
RPMTAG_SHA1RHN = 1130, /* internal - obsolete */
RPMTAG_RHNPLATFORM = 1131, /* s internal - obsolete */
RPMTAG_PLATFORM = 1132, /* s */
RPMTAG_PATCHESNAME = 1133, /* s[] deprecated placeholder (SuSE) */
RPMTAG_PATCHESFLAGS = 1134, /* i[] deprecated placeholder (SuSE) */
RPMTAG_PATCHESVERSION = 1135, /* s[] deprecated placeholder (SuSE) */
RPMTAG_CACHECTIME = 1136, /* i internal - obsolete */
RPMTAG_CACHEPKGPATH = 1137, /* s internal - obsolete */
RPMTAG_CACHEPKGSIZE = 1138, /* i internal - obsolete */
RPMTAG_CACHEPKGMTIME = 1139, /* i internal - obsolete */
RPMTAG_FILECOLORS = 1140, /* i[] */
RPMTAG_FILECLASS = 1141, /* i[] */
RPMTAG_CLASSDICT = 1142, /* s[] */
RPMTAG_FILEDEPENDSX = 1143, /* i[] */
RPMTAG_FILEDEPENDSN = 1144, /* i[] */
RPMTAG_DEPENDSDICT = 1145, /* i[] */
RPMTAG_SOURCEPKGID = 1146, /* x */
RPMTAG_FILECONTEXTS = 1147, /* s[] - obsolete */
RPMTAG_FSCONTEXTS = 1148, /* s[] extension */
RPMTAG_RECONTEXTS = 1149, /* s[] extension */
RPMTAG_POLICIES = 1150, /* s[] selinux *.te policy file. */
RPMTAG_PRETRANS = 1151, /* s */
RPMTAG_POSTTRANS = 1152, /* s */
RPMTAG_PRETRANSPROG = 1153, /* s[] */
RPMTAG_POSTTRANSPROG = 1154, /* s[] */
RPMTAG_DISTTAG = 1155, /* s */
RPMTAG_OLDSUGGESTSNAME = 1156, /* s[] - obsolete */
#define RPMTAG_OLDSUGGESTS RPMTAG_OLDSUGGESTSNAME /* s[] - obsolete */
RPMTAG_OLDSUGGESTSVERSION = 1157, /* s[] - obsolete */
RPMTAG_OLDSUGGESTSFLAGS = 1158, /* i[] - obsolete */
RPMTAG_OLDENHANCESNAME = 1159, /* s[] - obsolete */
#define RPMTAG_OLDENHANCES RPMTAG_OLDENHANCESNAME /* s[] - obsolete */
RPMTAG_OLDENHANCESVERSION = 1160, /* s[] - obsolete */
RPMTAG_OLDENHANCESFLAGS = 1161, /* i[] - obsolete */
RPMTAG_PRIORITY = 1162, /* i[] extension placeholder (unimplemented) */
RPMTAG_CVSID = 1163, /* s (unimplemented) */
#define RPMTAG_SVNID RPMTAG_CVSID /* s (unimplemented) */
RPMTAG_BLINKPKGID = 1164, /* s[] (unimplemented) */
RPMTAG_BLINKHDRID = 1165, /* s[] (unimplemented) */
RPMTAG_BLINKNEVRA = 1166, /* s[] (unimplemented) */
RPMTAG_FLINKPKGID = 1167, /* s[] (unimplemented) */
RPMTAG_FLINKHDRID = 1168, /* s[] (unimplemented) */
RPMTAG_FLINKNEVRA = 1169, /* s[] (unimplemented) */
RPMTAG_PACKAGEORIGIN = 1170, /* s (unimplemented) */
RPMTAG_TRIGGERPREIN = 1171, /* internal */
RPMTAG_BUILDSUGGESTS = 1172, /* internal (unimplemented) */
RPMTAG_BUILDENHANCES = 1173, /* internal (unimplemented) */
RPMTAG_SCRIPTSTATES = 1174, /* i[] scriptlet exit codes (unimplemented) */
RPMTAG_SCRIPTMETRICS = 1175, /* i[] scriptlet execution times (unimplemented) */
RPMTAG_BUILDCPUCLOCK = 1176, /* i (unimplemented) */
RPMTAG_FILEDIGESTALGOS = 1177, /* i[] (unimplemented) */
RPMTAG_VARIANTS = 1178, /* s[] (unimplemented) */
RPMTAG_XMAJOR = 1179, /* i (unimplemented) */
RPMTAG_XMINOR = 1180, /* i (unimplemented) */
RPMTAG_REPOTAG = 1181, /* s (unimplemented) */
RPMTAG_KEYWORDS = 1182, /* s[] (unimplemented) */
RPMTAG_BUILDPLATFORMS = 1183, /* s[] (unimplemented) */
RPMTAG_PACKAGECOLOR = 1184, /* i (unimplemented) */
RPMTAG_PACKAGEPREFCOLOR = 1185, /* i (unimplemented) */
RPMTAG_XATTRSDICT = 1186, /* s[] (unimplemented) */
RPMTAG_FILEXATTRSX = 1187, /* i[] (unimplemented) */
RPMTAG_DEPATTRSDICT = 1188, /* s[] (unimplemented) */
RPMTAG_CONFLICTATTRSX = 1189, /* i[] (unimplemented) */
RPMTAG_OBSOLETEATTRSX = 1190, /* i[] (unimplemented) */
RPMTAG_PROVIDEATTRSX = 1191, /* i[] (unimplemented) */
RPMTAG_REQUIREATTRSX = 1192, /* i[] (unimplemented) */
RPMTAG_BUILDPROVIDES = 1193, /* internal (unimplemented) */
RPMTAG_BUILDOBSOLETES = 1194, /* internal (unimplemented) */
RPMTAG_DBINSTANCE = 1195, /* i extension */
RPMTAG_NVRA = 1196, /* s extension */
/* tags 1997-4999 reserved */
RPMTAG_FILENAMES = 5000, /* s[] extension */
RPMTAG_FILEPROVIDE = 5001, /* s[] extension */
RPMTAG_FILEREQUIRE = 5002, /* s[] extension */
RPMTAG_FSNAMES = 5003, /* s[] (unimplemented) */
RPMTAG_FSSIZES = 5004, /* l[] (unimplemented) */
RPMTAG_TRIGGERCONDS = 5005, /* s[] extension */
RPMTAG_TRIGGERTYPE = 5006, /* s[] extension */
RPMTAG_ORIGFILENAMES = 5007, /* s[] extension */
RPMTAG_LONGFILESIZES = 5008, /* l[] */
RPMTAG_LONGSIZE = 5009, /* l */
RPMTAG_FILECAPS = 5010, /* s[] */
RPMTAG_FILEDIGESTALGO = 5011, /* i file digest algorithm */
RPMTAG_BUGURL = 5012, /* s */
RPMTAG_EVR = 5013, /* s extension */
RPMTAG_NVR = 5014, /* s extension */
RPMTAG_NEVR = 5015, /* s extension */
RPMTAG_NEVRA = 5016, /* s extension */
RPMTAG_HEADERCOLOR = 5017, /* i extension */
RPMTAG_VERBOSE = 5018, /* i extension */
RPMTAG_EPOCHNUM = 5019, /* i extension */
RPMTAG_PREINFLAGS = 5020, /* i */
RPMTAG_POSTINFLAGS = 5021, /* i */
RPMTAG_PREUNFLAGS = 5022, /* i */
RPMTAG_POSTUNFLAGS = 5023, /* i */
RPMTAG_PRETRANSFLAGS = 5024, /* i */
RPMTAG_POSTTRANSFLAGS = 5025, /* i */
RPMTAG_VERIFYSCRIPTFLAGS = 5026, /* i */
RPMTAG_TRIGGERSCRIPTFLAGS = 5027, /* i[] */
RPMTAG_COLLECTIONS = 5029, /* s[] list of collections (unimplemented) */
RPMTAG_POLICYNAMES = 5030, /* s[] */
RPMTAG_POLICYTYPES = 5031, /* s[] */
RPMTAG_POLICYTYPESINDEXES = 5032, /* i[] */
RPMTAG_POLICYFLAGS = 5033, /* i[] */
RPMTAG_VCS = 5034, /* s */
RPMTAG_ORDERNAME = 5035, /* s[] */
RPMTAG_ORDERVERSION = 5036, /* s[] */
RPMTAG_ORDERFLAGS = 5037, /* i[] */
RPMTAG_MSSFMANIFEST = 5038, /* s[] reservation (unimplemented) */
RPMTAG_MSSFDOMAIN = 5039, /* s[] reservation (unimplemented) */
RPMTAG_INSTFILENAMES = 5040, /* s[] extension */
RPMTAG_REQUIRENEVRS = 5041, /* s[] extension */
RPMTAG_PROVIDENEVRS = 5042, /* s[] extension */
RPMTAG_OBSOLETENEVRS = 5043, /* s[] extension */
RPMTAG_CONFLICTNEVRS = 5044, /* s[] extension */
RPMTAG_FILENLINKS = 5045, /* i[] extension */
RPMTAG_RECOMMENDNAME = 5046, /* s[] */
#define RPMTAG_RECOMMENDS RPMTAG_RECOMMENDNAME /* s[] */
RPMTAG_RECOMMENDVERSION = 5047, /* s[] */
RPMTAG_RECOMMENDFLAGS = 5048, /* i[] */
RPMTAG_SUGGESTNAME = 5049, /* s[] */
#define RPMTAG_SUGGESTS RPMTAG_SUGGESTNAME /* s[] */
RPMTAG_SUGGESTVERSION = 5050, /* s[] */
RPMTAG_SUGGESTFLAGS = 5051, /* i[] */
RPMTAG_SUPPLEMENTNAME = 5052, /* s[] */
#define RPMTAG_SUPPLEMENTS RPMTAG_SUPPLEMENTNAME /* s[] */
RPMTAG_SUPPLEMENTVERSION = 5053, /* s[] */
RPMTAG_SUPPLEMENTFLAGS = 5054, /* i[] */
RPMTAG_ENHANCENAME = 5055, /* s[] */
#define RPMTAG_ENHANCES RPMTAG_ENHANCENAME /* s[] */
RPMTAG_ENHANCEVERSION = 5056, /* s[] */
RPMTAG_ENHANCEFLAGS = 5057, /* i[] */
RPMTAG_RECOMMENDNEVRS = 5058, /* s[] extension */
RPMTAG_SUGGESTNEVRS = 5059, /* s[] extension */
RPMTAG_SUPPLEMENTNEVRS = 5060, /* s[] extension */
RPMTAG_ENHANCENEVRS = 5061, /* s[] extension */
RPMTAG_ENCODING = 5062, /* s */
RPMTAG_FILETRIGGERIN = 5063, /* internal */
RPMTAG_FILETRIGGERUN = 5064, /* internal */
RPMTAG_FILETRIGGERPOSTUN = 5065, /* internal */
RPMTAG_FILETRIGGERSCRIPTS = 5066, /* s[] */
RPMTAG_FILETRIGGERSCRIPTPROG = 5067, /* s[] */
RPMTAG_FILETRIGGERSCRIPTFLAGS = 5068, /* i[] */
RPMTAG_FILETRIGGERNAME = 5069, /* s[] */
RPMTAG_FILETRIGGERINDEX = 5070, /* i[] */
RPMTAG_FILETRIGGERVERSION = 5071, /* s[] */
RPMTAG_FILETRIGGERFLAGS = 5072, /* i[] */
RPMTAG_TRANSFILETRIGGERIN = 5073, /* internal */
RPMTAG_TRANSFILETRIGGERUN = 5074, /* internal */
RPMTAG_TRANSFILETRIGGERPOSTUN = 5075, /* internal */
RPMTAG_TRANSFILETRIGGERSCRIPTS = 5076, /* s[] */
RPMTAG_TRANSFILETRIGGERSCRIPTPROG = 5077, /* s[] */
RPMTAG_TRANSFILETRIGGERSCRIPTFLAGS = 5078, /* i[] */
RPMTAG_TRANSFILETRIGGERNAME = 5079, /* s[] */
RPMTAG_TRANSFILETRIGGERINDEX = 5080, /* i[] */
RPMTAG_TRANSFILETRIGGERVERSION = 5081, /* s[] */
RPMTAG_TRANSFILETRIGGERFLAGS = 5082, /* i[] */
RPMTAG_REMOVEPATHPOSTFIXES = 5083, /* s internal */
RPMTAG_FILETRIGGERPRIORITIES = 5084, /* i[] */
RPMTAG_TRANSFILETRIGGERPRIORITIES = 5085, /* i[] */
RPMTAG_FILETRIGGERCONDS = 5086, /* s[] extension */
RPMTAG_FILETRIGGERTYPE = 5087, /* s[] extension */
RPMTAG_TRANSFILETRIGGERCONDS = 5088, /* s[] extension */
RPMTAG_TRANSFILETRIGGERTYPE = 5089, /* s[] extension */
RPMTAG_FILESIGNATURES = 5090, /* s[] */
RPMTAG_FILESIGNATURELENGTH = 5091, /* i */
RPMTAG_PAYLOADDIGEST = 5092, /* s[] */
RPMTAG_PAYLOADDIGESTALGO = 5093, /* i */
RPMTAG_AUTOINSTALLED = 5094, /* i reservation (unimplemented) */
RPMTAG_IDENTITY = 5095, /* s reservation (unimplemented) */
RPMTAG_MODULARITYLABEL = 5096, /* s */
RPMTAG_PAYLOADDIGESTALT = 5097, /* s[] */
RPMTAG_ARCHSUFFIX = 5098, /* s extension */
RPMTAG_SPEC = 5099, /* s */
RPMTAG_TRANSLATIONURL = 5100, /* s */
RPMTAG_UPSTREAMRELEASES = 5101, /* s */
RPMTAG_SOURCELICENSE = 5102, /* internal */
RPMTAG_PREUNTRANS = 5103, /* s */
RPMTAG_POSTUNTRANS = 5104, /* s */
RPMTAG_PREUNTRANSPROG = 5105, /* s[] */
RPMTAG_POSTUNTRANSPROG = 5106, /* s[] */
RPMTAG_PREUNTRANSFLAGS = 5107, /* i */
RPMTAG_POSTUNTRANSFLAGS = 5108, /* i */
RPMTAG_SYSUSERS = 5109, /* s[] extension */
RPMTAG_BUILDSYSTEM = 5110, /* internal */
RPMTAG_BUILDOPTION = 5111, /* internal */
RPMTAG_FIRSTFREE_TAG
} rpmTag;
#define RPMTAG_NOT_FOUND ((uint32_t)-1)
#define RPMTAG_EXTERNAL_TAG 1000000
typedef enum rpmDbiTag_e {
RPMDBI_PACKAGES = 0, /* Installed package headers. */
RPMDBI_LABEL = 2, /* NEVRA label pseudo index */
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,
RPMDBI_FILETRIGGERNAME = RPMTAG_FILETRIGGERNAME,
RPMDBI_TRANSFILETRIGGERNAME = RPMTAG_TRANSFILETRIGGERNAME,
RPMDBI_RECOMMENDNAME = RPMTAG_RECOMMENDNAME,
RPMDBI_SUGGESTNAME = RPMTAG_SUGGESTNAME,
RPMDBI_SUPPLEMENTNAME = RPMTAG_SUPPLEMENTNAME,
RPMDBI_ENHANCENAME = RPMTAG_ENHANCENAME,
} rpmDbiTag;
typedef 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_RESERVEDSPACE = 1008,
RPMSIGTAG_BADSHA1_1 = RPMTAG_BADSHA1_1,
RPMSIGTAG_BADSHA1_2 = RPMTAG_BADSHA1_2,
RPMSIGTAG_DSA = RPMTAG_DSAHEADER,
RPMSIGTAG_RSA = RPMTAG_RSAHEADER,
RPMSIGTAG_SHA1 = RPMTAG_SHA1HEADER,
RPMSIGTAG_LONGSIZE = RPMTAG_LONGSIGSIZE,
RPMSIGTAG_LONGARCHIVESIZE = RPMTAG_LONGARCHIVESIZE,
RPMSIGTAG_SHA256 = RPMTAG_SHA256HEADER,
RPMSIGTAG_FILESIGNATURES = RPMTAG_SIG_BASE + 18,
RPMSIGTAG_FILESIGNATURELENGTH = RPMTAG_SIG_BASE + 19,
RPMSIGTAG_VERITYSIGNATURES = RPMTAG_VERITYSIGNATURES,
RPMSIGTAG_VERITYSIGNATUREALGO = RPMTAG_VERITYSIGNATUREALGO,
} rpmSigTag;
enum rpmTagType_e {
#define RPM_MIN_TYPE 1
RPM_NULL_TYPE = 0,
RPM_CHAR_TYPE = 1,
RPM_INT8_TYPE = 2,
RPM_INT16_TYPE = 3,
RPM_INT32_TYPE = 4,
RPM_INT64_TYPE = 5,
RPM_STRING_TYPE = 6,
RPM_BIN_TYPE = 7,
RPM_STRING_ARRAY_TYPE = 8,
RPM_I18NSTRING_TYPE = 9,
#define RPM_MAX_TYPE 9
#define RPM_FORCEFREE_TYPE 0xff
#define RPM_MASK_TYPE 0x0000ffff
};
typedef rpmFlags rpmTagType;
typedef enum rpmTagClass_e {
RPM_NULL_CLASS = 0,
RPM_NUMERIC_CLASS = 1,
RPM_STRING_CLASS = 2,
RPM_BINARY_CLASS = 3,
} rpmTagClass;
enum rpmTagReturnType_e {
RPM_ANY_RETURN_TYPE = 0,
RPM_SCALAR_RETURN_TYPE = 0x00010000,
RPM_ARRAY_RETURN_TYPE = 0x00020000,
RPM_MAPPING_RETURN_TYPE = 0x00040000
#define RPM_MASK_RETURN_TYPE 0xffff0000
};
typedef rpmFlags rpmTagReturnType;
const char * rpmTagGetName(rpmTagVal tag);
rpmTagType rpmTagGetType(rpmTagVal tag);
rpmTagType rpmTagGetTagType(rpmTagVal tag);
rpmTagReturnType rpmTagGetReturnType(rpmTagVal tag);
rpmTagClass rpmTagGetClass(rpmTagVal tag);
rpmTagVal rpmTagGetValue(const char * tagstr);
rpmTagClass rpmTagTypeGetClass(rpmTagType type);
int rpmTagGetNames(rpmtd tagnames, int fullname);
#ifdef __cplusplus
}
#endif
#endif /* _RPMTAG_H */
rpmTagReturnType_e
rpmTagReturnType_e
Definition rpmtag.h:487
rpmTagType_e
rpmTagType_e
Definition rpmtag.h:456
rpmTagGetValue
rpmTagVal rpmTagGetValue(const char *tagstr)
rpmTagGetClass
rpmTagClass rpmTagGetClass(rpmTagVal tag)
rpmDbiTag
enum rpmDbiTag_e rpmDbiTag
rpmTagGetName
const char * rpmTagGetName(rpmTagVal tag)
rpmTagGetReturnType
rpmTagReturnType rpmTagGetReturnType(rpmTagVal tag)
rpmTagGetType
rpmTagType rpmTagGetType(rpmTagVal tag)
rpmTag_e
rpmTag_e
Definition rpmtag.h:34
rpmDbiTag_e
rpmDbiTag_e
Definition rpmtag.h:401
rpmTagGetTagType
rpmTagType rpmTagGetTagType(rpmTagVal tag)
rpmTagClass_e
rpmTagClass_e
Definition rpmtag.h:477
rpmTagClass
enum rpmTagClass_e rpmTagClass
rpmTagTypeGetClass
rpmTagClass rpmTagTypeGetClass(rpmTagType type)
rpmTagGetNames
int rpmTagGetNames(rpmtd tagnames, int fullname)
rpmTag
enum rpmTag_e rpmTag
RPMTAG_FIRSTFREE_TAG
@ RPMTAG_FIRSTFREE_TAG
Definition rpmtag.h:392
RPMTAG_HEADERIMAGE
@ RPMTAG_HEADERIMAGE
Definition rpmtag.h:35
RPMTAG_HEADERREGIONS
@ RPMTAG_HEADERREGIONS
Definition rpmtag.h:38
RPMTAG_HEADERSIGNATURES
@ RPMTAG_HEADERSIGNATURES
Definition rpmtag.h:36
RPMTAG_HEADERIMMUTABLE
@ RPMTAG_HEADERIMMUTABLE
Definition rpmtag.h:37
rpmSigTag_e
rpmSigTag_e
Definition rpmtag.h:428
rpmSigTag
enum rpmSigTag_e rpmSigTag
RPMSIGTAG_LEMD5_1
@ RPMSIGTAG_LEMD5_1
Definition rpmtag.h:430
RPMSIGTAG_GPG
@ RPMSIGTAG_GPG
Definition rpmtag.h:434
RPMSIGTAG_SHA1
@ RPMSIGTAG_SHA1
Definition rpmtag.h:442
RPMSIGTAG_LEMD5_2
@ RPMSIGTAG_LEMD5_2
Definition rpmtag.h:432
RPMSIGTAG_RESERVEDSPACE
@ RPMSIGTAG_RESERVEDSPACE
Definition rpmtag.h:437
RPMSIGTAG_BADSHA1_2
@ RPMSIGTAG_BADSHA1_2
Definition rpmtag.h:439
RPMSIGTAG_LONGARCHIVESIZE
@ RPMSIGTAG_LONGARCHIVESIZE
Definition rpmtag.h:444
RPMSIGTAG_MD5
@ RPMSIGTAG_MD5
Definition rpmtag.h:433
RPMSIGTAG_SIZE
@ RPMSIGTAG_SIZE
Definition rpmtag.h:429
RPMSIGTAG_BADSHA1_1
@ RPMSIGTAG_BADSHA1_1
Definition rpmtag.h:438
RPMSIGTAG_PGP
@ RPMSIGTAG_PGP
Definition rpmtag.h:431
RPMSIGTAG_DSA
@ RPMSIGTAG_DSA
Definition rpmtag.h:440
RPMSIGTAG_PGP5
@ RPMSIGTAG_PGP5
Definition rpmtag.h:435
RPMSIGTAG_PAYLOADSIZE
@ RPMSIGTAG_PAYLOADSIZE
Definition rpmtag.h:436
RPMSIGTAG_RSA
@ RPMSIGTAG_RSA
Definition rpmtag.h:441
RPMSIGTAG_LONGSIZE
@ RPMSIGTAG_LONGSIZE
Definition rpmtag.h:443
HEADER_IMAGE
#define HEADER_IMAGE
Definition rpmtag.h:20
rpmtypes.h
rpmtd_s
Definition rpmtd.h:35