At long long last, make entryInfo opaque outside header.c

This guarantees there aren't any hidden users of these fields that
we'd need to worry about when changing types. The data itself of
course ends up being public through rpmtd_s so care is needed...
This commit is contained in:
Panu Matilainen 2023-02-15 08:54:50 +02:00
parent 2f7c3458df
commit 9afa5a1463
2 changed files with 10 additions and 10 deletions

View File

@ -77,6 +77,16 @@ enum headerFlags_e {
typedef rpmFlags headerFlags;
/** \ingroup header
* Description of tag data.
*/
struct entryInfo_s {
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. */
};
/** \ingroup header
* A single tag from a Header.
*/

View File

@ -8,17 +8,7 @@
#include <rpm/header.h>
#include <rpm/rpmcrypto.h>
/** \ingroup header
* Description of tag data.
*/
typedef struct entryInfo_s * entryInfo;
struct entryInfo_s {
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. */
};
typedef struct hdrblob_s * hdrblob;
struct hdrblob_s {
uint32_t *ei;