summaryrefslogtreecommitdiff
path: root/lib/rpmlib.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-13 20:35:33 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-13 20:35:33 +0200
commit1e96ead46670088e6b867cc989eadbef092d5864 (patch)
tree6a884ee7056ff9d8ceb3161dd0b1b758c0a078a2 /lib/rpmlib.h
parent7e56c6355bea552d89e8d5d0a317763a8cee4a4f (diff)
downloadlibrpm-tizen-1e96ead46670088e6b867cc989eadbef092d5864.tar.gz
librpm-tizen-1e96ead46670088e6b867cc989eadbef092d5864.tar.bz2
librpm-tizen-1e96ead46670088e6b867cc989eadbef092d5864.zip
Use rpm_tagtype_t everywhere for rpm (header) tagtype type
- typedef'ed as uint32_t, doesn't matter much but negative types dont exist - easy to grep, easy to change... - define RPM_FORCEFREE_TYPE instead of -1 "magic" for forcing headerFreeData (ugh), easier to grep for and change than "-1"
Diffstat (limited to 'lib/rpmlib.h')
-rw-r--r--lib/rpmlib.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rpmlib.h b/lib/rpmlib.h
index 8fa41e85d..730d13a35 100644
--- a/lib/rpmlib.h
+++ b/lib/rpmlib.h
@@ -184,11 +184,11 @@ void rpmFreeRpmrc(void);
* Prototype for headerFreeData() vector.
*
* @param data address of data (or NULL)
- * @param type type of data (or -1 to force free)
+ * @param type type of data (or to force free)
* @return NULL always
*/
typedef
- void * (*HFD_t) (const void * data, rpmTagType type);
+ void * (*HFD_t) (const void * data, rpm_tagtype_t type);
/**
* Prototype for headerGetEntry() vector.
@@ -205,7 +205,7 @@ typedef
* @return 1 on success, 0 on failure
*/
typedef int (*HGE_t) (Header h, rpm_tag_t tag,
- rpmTagType * type,
+ rpm_tagtype_t * type,
void ** p,
rpm_count_t * c);
@@ -224,7 +224,7 @@ typedef int (*HGE_t) (Header h, rpm_tag_t tag,
* @param c number of values
* @return 1 on success, 0 on failure
*/
-typedef int (*HAE_t) (Header h, rpm_tag_t tag, rpmTagType type,
+typedef int (*HAE_t) (Header h, rpm_tag_t tag, rpm_tagtype_t type,
const void * p, rpm_count_t c);
/**
@@ -238,7 +238,7 @@ typedef int (*HAE_t) (Header h, rpm_tag_t tag, rpmTagType type,
* @param c number of values
* @return 1 on success, 0 on failure
*/
-typedef int (*HME_t) (Header h, rpm_tag_t tag, rpmTagType type,
+typedef int (*HME_t) (Header h, rpm_tag_t tag, rpm_tagtype_t type,
const void * p, rpm_count_t c);
/**