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:
parent
2f7c3458df
commit
9afa5a1463
10
lib/header.c
10
lib/header.c
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue