From b0d62148a9090fb442fc7bf993f5ef3253c4b0fe Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 21 Sep 2010 12:23:18 +0300 Subject: 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 * --- lib/header.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'lib/header.c') 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 #include #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; -- cgit v1.2.3