- Start undoing self-introduced enum braindamage from 2007: the lowlevel
tag data in header structures are NOT rpmTag/rpmTagType enums, but a
32bit integer of any arbitrary value. While these can be legally mixed in
C the same is not true of C++ and even in C using enum here is not "correct"
*/
typedef struct entryInfo_s * entryInfo;
struct entryInfo_s {
- rpmTag tag; /*!< Tag identifier. */
- rpmTagType type; /*!< Tag data type. */
+ rpm_tag_t tag; /*!< Tag identifier. */
+ rpm_tagtype_t type; /*!< Tag data type. */
int32_t offset; /*!< Offset into data segment (ondisk only). */
rpm_count_t count; /*!< Number of tag elements. */
};
* @todo Make this opaque (at least outside rpm itself)
*/
struct rpmtd_s {
- rpmTag tag; /* rpm tag of this data entry*/
- rpmTagType type; /* data type */
+ rpm_tag_t tag; /* rpm tag of this data entry*/
+ rpm_tagtype_t type; /* data type */
rpm_count_t count; /* number of entries */
rpm_data_t data; /* pointer to actual data */
rpmtdFlags flags; /* flags on memory allocation etc */
typedef struct headerIterator_s * HeaderIterator;
typedef int32_t rpm_tag_t;
-typedef uint32_t rpm_tagtype_t; /* unused */
+typedef uint32_t rpm_tagtype_t;
typedef uint32_t rpm_count_t;
typedef void * rpm_data_t;