summaryrefslogtreecommitdiff
path: root/lib/header.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-21 12:23:18 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-21 12:23:18 +0300
commitb0d62148a9090fb442fc7bf993f5ef3253c4b0fe (patch)
treedb3b04e0b36eaed55d2b611170c00105d7b82bbe /lib/header.c
parent147f41bcc150d674ad86c714208c9a1f82218683 (diff)
downloadlibrpm-tizen-b0d62148a9090fb442fc7bf993f5ef3253c4b0fe.tar.gz
librpm-tizen-b0d62148a9090fb442fc7bf993f5ef3253c4b0fe.tar.bz2
librpm-tizen-b0d62148a9090fb442fc7bf993f5ef3253c4b0fe.zip
Use proper types for tag and format extension functions
- Stuff the tag prototypes into misc.h in lack of better place - Actually use the headerTagFooFunction prototypes instead of void *
Diffstat (limited to 'lib/header.c')
-rw-r--r--lib/header.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/header.c b/lib/header.c
index 91dd6bd57..55b2d17d2 100644
--- a/lib/header.c
+++ b/lib/header.c
@@ -13,6 +13,7 @@
#include <rpm/rpmtypes.h>
#include <rpm/rpmstring.h>
#include "lib/header_internal.h"
+#include "lib/misc.h" /* tag function proto */
#include "debug.h"
@@ -99,19 +100,6 @@ static const size_t headerMaxbytes = (32*1024*1024);
(((_e)->info.tag >= RPMTAG_HEADERIMAGE) && ((_e)->info.tag < RPMTAG_HEADERREGIONS))
#define ENTRY_IN_REGION(_e) ((_e)->info.offset < 0)
-/** \ingroup header
- * HEADER_EXT_TAG format function prototype.
- * This is allowed to fail, which indicates the tag doesn't exist.
- *
- * @param h header
- * @retval td tag data container
- * @param flags modifier flags
- * @return 0 on success
- */
-typedef int (*headerTagTagFunction) (Header h, rpmtd td, headerGetFlags hgflags);
-
-extern void *rpmHeaderTagFunc(rpmTag tag);
-
/* Convert a 64bit value to network byte order. */
static uint64_t htonll( uint64_t n ) {
uint32_t *i = (uint32_t*)&n;