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

- File List
- Globals

# rpmtag.h

Go to the documentation of this file.

    00001 #ifndef _RPMTAG_H
    00002 #define _RPMTAG_H
    00003
    00004 #include <rpm/rpmtypes.h>
    00005
    00006 #ifdef __cplusplus
    00007 extern "C" {
    00008 #endif
    00009
    00013 #define RPMDBI_PACKAGES         0       /* Installed package headers. */
    00014 #define RPMDBI_DEPENDS          1       /* Dependency resolution cache. */
    00015 #define RPMDBI_LABEL            2       /* Fingerprint search marker. */
    00016 #define RPMDBI_ADDED            3       /* Added package headers. */
    00017 #define RPMDBI_REMOVED          4       /* Removed package headers. */
    00018 #define RPMDBI_AVAILABLE        5       /* Available package headers. */
    00019 #define RPMDBI_HDLIST           6       /* (rpmgi) Header list. */
    00020 #define RPMDBI_ARGLIST          7       /* (rpmgi) Argument list. */
    00021 #define RPMDBI_FTSWALK          8       /* (rpmgi) File tree  walk. */
    00022
    00027 #define HEADER_IMAGE            61
    00028 #define HEADER_SIGNATURES       62
    00029 #define HEADER_IMMUTABLE        63
    00030 #define HEADER_REGIONS          64
    00031 #define HEADER_I18NTABLE        100
    00032 #define HEADER_SIGBASE          256
    00033 #define HEADER_TAGBASE          1000
    00034
    00040 typedef enum rpmTag_e {
    00041
    00042     RPMTAG_HEADERIMAGE          = HEADER_IMAGE,
    00043     RPMTAG_HEADERSIGNATURES     = HEADER_SIGNATURES,
    00044     RPMTAG_HEADERIMMUTABLE      = HEADER_IMMUTABLE,
    00045     RPMTAG_HEADERREGIONS        = HEADER_REGIONS,
    00047     RPMTAG_HEADERI18NTABLE      = HEADER_I18NTABLE,     /* s[] !< I18N string locales. */
    00048
    00049 /* Retrofit (and uniqify) signature tags for use by rpmTagGetName() and rpmQuery. */
    00050 /* the md5 sum was broken *twice* on big endian machines */
    00051 /* XXX 2nd underscore prevents tagTable generation */
    00052     RPMTAG_SIG_BASE             = HEADER_SIGBASE,
    00053     RPMTAG_SIGSIZE              = RPMTAG_SIG_BASE+1,    /* i */
    00054     RPMTAG_SIGLEMD5_1           = RPMTAG_SIG_BASE+2,    /* internal - obsolete */
    00055     RPMTAG_SIGPGP               = RPMTAG_SIG_BASE+3,    /* x */
    00056     RPMTAG_SIGLEMD5_2           = RPMTAG_SIG_BASE+4,    /* x internal - obsolete */
    00057     RPMTAG_SIGMD5               = RPMTAG_SIG_BASE+5,    /* x */
    00058 #define RPMTAG_PKGID    RPMTAG_SIGMD5                   /* x */
    00059     RPMTAG_SIGGPG               = RPMTAG_SIG_BASE+6,    /* x */
    00060     RPMTAG_SIGPGP5              = RPMTAG_SIG_BASE+7,    /* internal - obsolete */
    00061
    00062     RPMTAG_BADSHA1_1            = RPMTAG_SIG_BASE+8,    /* internal - obsolete */
    00063     RPMTAG_BADSHA1_2            = RPMTAG_SIG_BASE+9,    /* internal - obsolete */
    00064     RPMTAG_PUBKEYS              = RPMTAG_SIG_BASE+10,   /* s[] */
    00065     RPMTAG_DSAHEADER            = RPMTAG_SIG_BASE+11,   /* x */
    00066     RPMTAG_RSAHEADER            = RPMTAG_SIG_BASE+12,   /* x */
    00067     RPMTAG_SHA1HEADER           = RPMTAG_SIG_BASE+13,   /* s */
    00068 #define RPMTAG_HDRID    RPMTAG_SHA1HEADER       /* s */
    00069     RPMTAG_LONGSIGSIZE          = RPMTAG_SIG_BASE+14,   /* l */
    00070     RPMTAG_LONGARCHIVESIZE      = RPMTAG_SIG_BASE+15,   /* l */
    00071
    00072     RPMTAG_NAME                 = 1000, /* s */
    00073 #define RPMTAG_N        RPMTAG_NAME     /* s */
    00074     RPMTAG_VERSION              = 1001, /* s */
    00075 #define RPMTAG_V        RPMTAG_VERSION  /* s */
    00076     RPMTAG_RELEASE              = 1002, /* s */
    00077 #define RPMTAG_R        RPMTAG_RELEASE  /* s */
    00078     RPMTAG_EPOCH                = 1003, /* i */
    00079 #define RPMTAG_E        RPMTAG_EPOCH    /* i */
    00080     RPMTAG_SUMMARY              = 1004, /* s{} */
    00081     RPMTAG_DESCRIPTION          = 1005, /* s{} */
    00082     RPMTAG_BUILDTIME            = 1006, /* i */
    00083     RPMTAG_BUILDHOST            = 1007, /* s */
    00084     RPMTAG_INSTALLTIME          = 1008, /* i */
    00085     RPMTAG_SIZE                 = 1009, /* i */
    00086     RPMTAG_DISTRIBUTION         = 1010, /* s */
    00087     RPMTAG_VENDOR               = 1011, /* s */
    00088     RPMTAG_GIF                  = 1012, /* x */
    00089     RPMTAG_XPM                  = 1013, /* x */
    00090     RPMTAG_LICENSE              = 1014, /* s */
    00091     RPMTAG_PACKAGER             = 1015, /* s */
    00092     RPMTAG_GROUP                = 1016, /* s{} */
    00093     RPMTAG_CHANGELOG            = 1017, /* s[] internal */
    00094     RPMTAG_SOURCE               = 1018, /* s[] */
    00095     RPMTAG_PATCH                = 1019, /* s[] */
    00096     RPMTAG_URL                  = 1020, /* s */
    00097     RPMTAG_OS                   = 1021, /* s legacy used int */
    00098     RPMTAG_ARCH                 = 1022, /* s legacy used int */
    00099     RPMTAG_PREIN                = 1023, /* s */
    00100     RPMTAG_POSTIN               = 1024, /* s */
    00101     RPMTAG_PREUN                = 1025, /* s */
    00102     RPMTAG_POSTUN               = 1026, /* s */
    00103     RPMTAG_OLDFILENAMES         = 1027, /* s[] obsolete */
    00104     RPMTAG_FILESIZES            = 1028, /* i[] */
    00105     RPMTAG_FILESTATES           = 1029, /* c[] */
    00106     RPMTAG_FILEMODES            = 1030, /* h[] */
    00107     RPMTAG_FILEUIDS             = 1031, /* i[] internal */
    00108     RPMTAG_FILEGIDS             = 1032, /* i[] internal */
    00109     RPMTAG_FILERDEVS            = 1033, /* h[] */
    00110     RPMTAG_FILEMTIMES           = 1034, /* i[] */
    00111     RPMTAG_FILEDIGESTS          = 1035, /* s[] */
    00112 #define RPMTAG_FILEMD5S RPMTAG_FILEDIGESTS /* s[] */
    00113     RPMTAG_FILELINKTOS          = 1036, /* s[] */
    00114     RPMTAG_FILEFLAGS            = 1037, /* i[] */
    00115     RPMTAG_ROOT                 = 1038, /* internal - obsolete */
    00116     RPMTAG_FILEUSERNAME         = 1039, /* s[] */
    00117     RPMTAG_FILEGROUPNAME        = 1040, /* s[] */
    00118     RPMTAG_EXCLUDE              = 1041, /* internal - obsolete */
    00119     RPMTAG_EXCLUSIVE            = 1042, /* internal - obsolete */
    00120     RPMTAG_ICON                 = 1043, /* x */
    00121     RPMTAG_SOURCERPM            = 1044, /* s */
    00122     RPMTAG_FILEVERIFYFLAGS      = 1045, /* i[] */
    00123     RPMTAG_ARCHIVESIZE          = 1046, /* i */
    00124     RPMTAG_PROVIDENAME          = 1047, /* s[] */
    00125 #define RPMTAG_PROVIDES RPMTAG_PROVIDENAME      /* s[] */
    00126 #define RPMTAG_P        RPMTAG_PROVIDENAME      /* s[] */
    00127     RPMTAG_REQUIREFLAGS         = 1048, /* i[] */
    00128     RPMTAG_REQUIRENAME          = 1049, /* s[] */
    00129 #define RPMTAG_REQUIRES RPMTAG_REQUIRENAME      /* s[] */
    00130     RPMTAG_REQUIREVERSION       = 1050, /* s[] */
    00131     RPMTAG_NOSOURCE             = 1051, /* i */
    00132     RPMTAG_NOPATCH              = 1052, /* i */
    00133     RPMTAG_CONFLICTFLAGS        = 1053, /* i[] */
    00134     RPMTAG_CONFLICTNAME         = 1054, /* s[] */
    00135 #define RPMTAG_CONFLICTS RPMTAG_CONFLICTNAME    /* s[] */
    00136 #define RPMTAG_C        RPMTAG_CONFLICTNAME     /* s[] */
    00137     RPMTAG_CONFLICTVERSION      = 1055, /* s[] */
    00138     RPMTAG_DEFAULTPREFIX        = 1056, /* s internal - deprecated */
    00139     RPMTAG_BUILDROOT            = 1057, /* s internal */
    00140     RPMTAG_INSTALLPREFIX        = 1058, /* s internal - deprecated */
    00141     RPMTAG_EXCLUDEARCH          = 1059, /* s[] */
    00142     RPMTAG_EXCLUDEOS            = 1060, /* s[] */
    00143     RPMTAG_EXCLUSIVEARCH        = 1061, /* s[] */
    00144     RPMTAG_EXCLUSIVEOS          = 1062, /* s[] */
    00145     RPMTAG_AUTOREQPROV          = 1063, /* s internal */
    00146     RPMTAG_RPMVERSION           = 1064, /* s */
    00147     RPMTAG_TRIGGERSCRIPTS       = 1065, /* s[] */
    00148     RPMTAG_TRIGGERNAME          = 1066, /* s[] */
    00149     RPMTAG_TRIGGERVERSION       = 1067, /* s[] */
    00150     RPMTAG_TRIGGERFLAGS         = 1068, /* i[] */
    00151     RPMTAG_TRIGGERINDEX         = 1069, /* i[] */
    00152     RPMTAG_VERIFYSCRIPT         = 1079, /* s */
    00153     RPMTAG_CHANGELOGTIME        = 1080, /* i[] */
    00154     RPMTAG_CHANGELOGNAME        = 1081, /* s[] */
    00155     RPMTAG_CHANGELOGTEXT        = 1082, /* s[] */
    00156     RPMTAG_BROKENMD5            = 1083, /* internal - obsolete */
    00157     RPMTAG_PREREQ               = 1084, /* internal */
    00158     RPMTAG_PREINPROG            = 1085, /* s */
    00159     RPMTAG_POSTINPROG           = 1086, /* s */
    00160     RPMTAG_PREUNPROG            = 1087, /* s */
    00161     RPMTAG_POSTUNPROG           = 1088, /* s */
    00162     RPMTAG_BUILDARCHS           = 1089, /* s[] */
    00163     RPMTAG_OBSOLETENAME         = 1090, /* s[] */
    00164 #define RPMTAG_OBSOLETES RPMTAG_OBSOLETENAME    /* s[] */
    00165 #define RPMTAG_O        RPMTAG_OBSOLETENAME     /* s[] */
    00166     RPMTAG_VERIFYSCRIPTPROG     = 1091, /* s */
    00167     RPMTAG_TRIGGERSCRIPTPROG    = 1092, /* s[] */
    00168     RPMTAG_DOCDIR               = 1093, /* internal */
    00169     RPMTAG_COOKIE               = 1094, /* s */
    00170     RPMTAG_FILEDEVICES          = 1095, /* i[] */
    00171     RPMTAG_FILEINODES           = 1096, /* i[] */
    00172     RPMTAG_FILELANGS            = 1097, /* s[] */
    00173     RPMTAG_PREFIXES             = 1098, /* s[] */
    00174     RPMTAG_INSTPREFIXES         = 1099, /* s[] */
    00175     RPMTAG_TRIGGERIN            = 1100, /* internal */
    00176     RPMTAG_TRIGGERUN            = 1101, /* internal */
    00177     RPMTAG_TRIGGERPOSTUN        = 1102, /* internal */
    00178     RPMTAG_AUTOREQ              = 1103, /* internal */
    00179     RPMTAG_AUTOPROV             = 1104, /* internal */
    00180     RPMTAG_CAPABILITY           = 1105, /* i legacy - obsolete */
    00181     RPMTAG_SOURCEPACKAGE        = 1106, /* i legacy - obsolete */
    00182     RPMTAG_OLDORIGFILENAMES     = 1107, /* internal - obsolete */
    00183     RPMTAG_BUILDPREREQ          = 1108, /* internal */
    00184     RPMTAG_BUILDREQUIRES        = 1109, /* internal */
    00185     RPMTAG_BUILDCONFLICTS       = 1110, /* internal */
    00186     RPMTAG_BUILDMACROS          = 1111, /* internal - unused */
    00187     RPMTAG_PROVIDEFLAGS         = 1112, /* i[] */
    00188     RPMTAG_PROVIDEVERSION       = 1113, /* s[] */
    00189     RPMTAG_OBSOLETEFLAGS        = 1114, /* i[] */
    00190     RPMTAG_OBSOLETEVERSION      = 1115, /* s[] */
    00191     RPMTAG_DIRINDEXES           = 1116, /* i[] */
    00192     RPMTAG_BASENAMES            = 1117, /* s[] */
    00193     RPMTAG_DIRNAMES             = 1118, /* s[] */
    00194     RPMTAG_ORIGDIRINDEXES       = 1119, /* i[] relocation */
    00195     RPMTAG_ORIGBASENAMES        = 1120, /* s[] relocation */
    00196     RPMTAG_ORIGDIRNAMES         = 1121, /* s[] relocation */
    00197     RPMTAG_OPTFLAGS             = 1122, /* s */
    00198     RPMTAG_DISTURL              = 1123, /* s */
    00199     RPMTAG_PAYLOADFORMAT        = 1124, /* s */
    00200     RPMTAG_PAYLOADCOMPRESSOR    = 1125, /* s */
    00201     RPMTAG_PAYLOADFLAGS         = 1126, /* s */
    00202     RPMTAG_INSTALLCOLOR         = 1127, /* i transaction color when installed */
    00203     RPMTAG_INSTALLTID           = 1128, /* i */
    00204     RPMTAG_REMOVETID            = 1129, /* i */
    00205     RPMTAG_SHA1RHN              = 1130, /* internal - obsolete */
    00206     RPMTAG_RHNPLATFORM          = 1131, /* s deprecated */
    00207     RPMTAG_PLATFORM             = 1132, /* s */
    00208     RPMTAG_PATCHESNAME          = 1133, /* s[] deprecated placeholder (SuSE) */
    00209     RPMTAG_PATCHESFLAGS         = 1134, /* i[] deprecated placeholder (SuSE) */
    00210     RPMTAG_PATCHESVERSION       = 1135, /* s[] deprecated placeholder (SuSE) */
    00211     RPMTAG_CACHECTIME           = 1136, /* i internal - obsolete */
    00212     RPMTAG_CACHEPKGPATH         = 1137, /* s internal - obsolete */
    00213     RPMTAG_CACHEPKGSIZE         = 1138, /* i internal - obsolete */
    00214     RPMTAG_CACHEPKGMTIME        = 1139, /* i internal - obsolete */
    00215     RPMTAG_FILECOLORS           = 1140, /* i[] */
    00216     RPMTAG_FILECLASS            = 1141, /* i[] */
    00217     RPMTAG_CLASSDICT            = 1142, /* s[] */
    00218     RPMTAG_FILEDEPENDSX         = 1143, /* i[] */
    00219     RPMTAG_FILEDEPENDSN         = 1144, /* i[] */
    00220     RPMTAG_DEPENDSDICT          = 1145, /* i[] */
    00221     RPMTAG_SOURCEPKGID          = 1146, /* x */
    00222     RPMTAG_FILECONTEXTS         = 1147, /* s[] - obsolete */
    00223     RPMTAG_FSCONTEXTS           = 1148, /* s[] extension */
    00224     RPMTAG_RECONTEXTS           = 1149, /* s[] extension */
    00225     RPMTAG_POLICIES             = 1150, /* s[] selinux *.te policy file. */
    00226     RPMTAG_PRETRANS             = 1151, /* s */
    00227     RPMTAG_POSTTRANS            = 1152, /* s */
    00228     RPMTAG_PRETRANSPROG         = 1153, /* s */
    00229     RPMTAG_POSTTRANSPROG        = 1154, /* s */
    00230     RPMTAG_DISTTAG              = 1155, /* s */
    00231     RPMTAG_SUGGESTSNAME         = 1156, /* s[] extension (unimplemented) */
    00232 #define RPMTAG_SUGGESTS RPMTAG_SUGGESTSNAME     /* s[] (unimplemented) */
    00233     RPMTAG_SUGGESTSVERSION      = 1157, /* s[] extension (unimplemented) */
    00234     RPMTAG_SUGGESTSFLAGS        = 1158, /* i[] extension (unimplemented) */
    00235     RPMTAG_ENHANCESNAME         = 1159, /* s[] extension placeholder (unimplemented) */
    00236 #define RPMTAG_ENHANCES RPMTAG_ENHANCESNAME     /* s[] (unimplemented) */
    00237     RPMTAG_ENHANCESVERSION      = 1160, /* s[] extension placeholder (unimplemented) */
    00238     RPMTAG_ENHANCESFLAGS        = 1161, /* i[] extension placeholder (unimplemented) */
    00239     RPMTAG_PRIORITY             = 1162, /* i[] extension placeholder (unimplemented) */
    00240     RPMTAG_CVSID                = 1163, /* s (unimplemented) */
    00241 #define RPMTAG_SVNID    RPMTAG_CVSID    /* s (unimplemented) */
    00242     RPMTAG_BLINKPKGID           = 1164, /* s[] (unimplemented) */
    00243     RPMTAG_BLINKHDRID           = 1165, /* s[] (unimplemented) */
    00244     RPMTAG_BLINKNEVRA           = 1166, /* s[] (unimplemented) */
    00245     RPMTAG_FLINKPKGID           = 1167, /* s[] (unimplemented) */
    00246     RPMTAG_FLINKHDRID           = 1168, /* s[] (unimplemented) */
    00247     RPMTAG_FLINKNEVRA           = 1169, /* s[] (unimplemented) */
    00248     RPMTAG_PACKAGEORIGIN        = 1170, /* s (unimplemented) */
    00249     RPMTAG_TRIGGERPREIN         = 1171, /* internal */
    00250     RPMTAG_BUILDSUGGESTS        = 1172, /* internal (unimplemented) */
    00251     RPMTAG_BUILDENHANCES        = 1173, /* internal (unimplemented) */
    00252     RPMTAG_SCRIPTSTATES         = 1174, /* i[] scriptlet exit codes (unimplemented) */
    00253     RPMTAG_SCRIPTMETRICS        = 1175, /* i[] scriptlet execution times (unimplemented) */
    00254     RPMTAG_BUILDCPUCLOCK        = 1176, /* i (unimplemented) */
    00255     RPMTAG_FILEDIGESTALGOS      = 1177, /* i[] (unimplemented) */
    00256     RPMTAG_VARIANTS             = 1178, /* s[] (unimplemented) */
    00257     RPMTAG_XMAJOR               = 1179, /* i (unimplemented) */
    00258     RPMTAG_XMINOR               = 1180, /* i (unimplemented) */
    00259     RPMTAG_REPOTAG              = 1181, /* s (unimplemented) */
    00260     RPMTAG_KEYWORDS             = 1182, /* s[] (unimplemented) */
    00261     RPMTAG_BUILDPLATFORMS       = 1183, /* s[] (unimplemented) */
    00262     RPMTAG_PACKAGECOLOR         = 1184, /* i (unimplemented) */
    00263     RPMTAG_PACKAGEPREFCOLOR     = 1185, /* i (unimplemented) */
    00264     RPMTAG_XATTRSDICT           = 1186, /* s[] (unimplemented) */
    00265     RPMTAG_FILEXATTRSX          = 1187, /* i[] (unimplemented) */
    00266     RPMTAG_DEPATTRSDICT         = 1188, /* s[] (unimplemented) */
    00267     RPMTAG_CONFLICTATTRSX       = 1189, /* i[] (unimplemented) */
    00268     RPMTAG_OBSOLETEATTRSX       = 1190, /* i[] (unimplemented) */
    00269     RPMTAG_PROVIDEATTRSX        = 1191, /* i[] (unimplemented) */
    00270     RPMTAG_REQUIREATTRSX        = 1192, /* i[] (unimplemented) */
    00271     RPMTAG_BUILDPROVIDES        = 1193, /* internal */
    00272     RPMTAG_BUILDOBSOLETES       = 1194, /* internal */
    00273     RPMTAG_DBINSTANCE           = 1195, /* i extension */
    00274     RPMTAG_NVRA                 = 1196, /* s extension */
    00275     RPMTAG_FILENAMES            = 5000, /* s[] extension */
    00276     RPMTAG_FILEPROVIDE          = 5001, /* s[] extension */
    00277     RPMTAG_FILEREQUIRE          = 5002, /* s[] extension */
    00278     RPMTAG_FSNAMES              = 5003, /* s[] extension */
    00279     RPMTAG_FSSIZES              = 5004, /* l[] extension */
    00280     RPMTAG_TRIGGERCONDS         = 5005, /* s[] extension */
    00281     RPMTAG_TRIGGERTYPE          = 5006, /* s[] extension */
    00282     RPMTAG_ORIGFILENAMES        = 5007, /* s[] extension */
    00283     RPMTAG_LONGFILESIZES        = 5008, /* l[] */
    00284     RPMTAG_LONGSIZE             = 5009, /* l */
    00285     RPMTAG_FILECAPS             = 5010, /* s[] */
    00286     RPMTAG_FILEDIGESTALGO       = 5011, /* i file digest algorithm */
    00287     RPMTAG_BUGURL               = 5012, /* s */
    00288     RPMTAG_EVR                  = 5013, /* s extension */
    00289     RPMTAG_NVR                  = 5014, /* s extension */
    00290     RPMTAG_NEVR                 = 5015, /* s extension */
    00291     RPMTAG_NEVRA                = 5016, /* s extension */
    00292     RPMTAG_HEADERCOLOR          = 5017, /* i extension */
    00293     RPMTAG_VERBOSE              = 5018, /* i extension */
    00294     RPMTAG_EPOCHNUM             = 5019, /* i extension */
    00295
    00296     RPMTAG_FIRSTFREE_TAG
    00297 } rpmTag;
    00298
    00299 #define RPMTAG_EXTERNAL_TAG             1000000
    00300 #define RPMTAG_NOT_FOUND                -1
    00301
    00305 typedef enum rpmSigTag_e {
    00306     RPMSIGTAG_SIZE      = 1000,
    00307     RPMSIGTAG_LEMD5_1   = 1001,
    00308     RPMSIGTAG_PGP       = 1002,
    00309     RPMSIGTAG_LEMD5_2   = 1003,
    00310     RPMSIGTAG_MD5       = 1004,
    00311     RPMSIGTAG_GPG       = 1005,
    00312     RPMSIGTAG_PGP5      = 1006,
    00313     RPMSIGTAG_PAYLOADSIZE = 1007,
    00314     RPMSIGTAG_BADSHA1_1 = RPMTAG_BADSHA1_1,
    00315     RPMSIGTAG_BADSHA1_2 = RPMTAG_BADSHA1_2,
    00316     RPMSIGTAG_SHA1      = RPMTAG_SHA1HEADER,
    00317     RPMSIGTAG_DSA       = RPMTAG_DSAHEADER,
    00318     RPMSIGTAG_RSA       = RPMTAG_RSAHEADER,
    00319     RPMSIGTAG_LONGSIZE  = RPMTAG_LONGSIGSIZE,
    00320     RPMSIGTAG_LONGARCHIVESIZE = RPMTAG_LONGARCHIVESIZE,
    00321 } rpmSigTag;
    00322
    00323
    00327 typedef enum rpmTagType_e {
    00328 #define RPM_MIN_TYPE            0
    00329     RPM_NULL_TYPE               =  0,
    00330     RPM_CHAR_TYPE               =  1,
    00331     RPM_INT8_TYPE               =  2,
    00332     RPM_INT16_TYPE              =  3,
    00333     RPM_INT32_TYPE              =  4,
    00334     RPM_INT64_TYPE              =  5,
    00335     RPM_STRING_TYPE             =  6,
    00336     RPM_BIN_TYPE                =  7,
    00337     RPM_STRING_ARRAY_TYPE       =  8,
    00338     RPM_I18NSTRING_TYPE         =  9,
    00339 #define RPM_MAX_TYPE            9
    00340 #define RPM_FORCEFREE_TYPE      0xff
    00341 #define RPM_MASK_TYPE           0x0000ffff
    00342 } rpmTagType;
    00343
    00347 typedef enum rpmTagClass_e {
    00348     RPM_NULL_CLASS      = 0,
    00349     RPM_NUMERIC_CLASS   = 1,
    00350     RPM_STRING_CLASS    = 2,
    00351     RPM_BINARY_CLASS    = 3,
    00352 } rpmTagClass;
    00353
    00362 typedef enum rpmSubTagType_e {
    00363     RPM_REGION_TYPE             = -10,
    00364     RPM_BIN_ARRAY_TYPE          = -11,
    00367     RPM_XREF_TYPE               = -12
    00370 } rpmSubTagType;
    00371
    00375 typedef enum rpmTagReturnType_e {
    00376     RPM_ANY_RETURN_TYPE         = 0,
    00377     RPM_SCALAR_RETURN_TYPE      = 0x00010000,
    00378     RPM_ARRAY_RETURN_TYPE       = 0x00020000,
    00379     RPM_MAPPING_RETURN_TYPE     = 0x00040000,
    00380     RPM_MASK_RETURN_TYPE        = 0xffff0000
    00381 } rpmTagReturnType;
    00382
    00388 const char * rpmTagGetName(rpmTag tag);
    00389
    00395 rpmTagType rpmTagGetType(rpmTag tag);
    00396
    00402 rpmTagClass rpmTagGetClass(rpmTag tag);
    00403
    00409 rpmTag rpmTagGetValue(const char * tagstr);
    00410
    00416 rpmTagClass rpmTagTypeGetClass(rpmTagType type);
    00417
    00424 int rpmTagGetNames(rpmtd tagnames, int fullname);
    00425
    00426 #ifdef __cplusplus
    00427 }
    00428 #endif
    00429
    00430 #endif /* _RPMTAG_H */