summaryrefslogtreecommitdiff
path: root/lib/headerfmt.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/headerfmt.c
parent147f41bcc150d674ad86c714208c9a1f82218683 (diff)
downloadrpm-b0d62148a9090fb442fc7bf993f5ef3253c4b0fe.tar.gz
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/headerfmt.c')
-rw-r--r--lib/headerfmt.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/lib/headerfmt.c b/lib/headerfmt.c
index 453ed02b8..7e86b970d 100644
--- a/lib/headerfmt.c
+++ b/lib/headerfmt.c
@@ -8,6 +8,7 @@
#include <rpm/rpmtag.h>
#include <rpm/rpmstring.h>
#include <rpm/rpmpgp.h>
+#include "lib/misc.h" /* format function protos */
#include "debug.h"
@@ -16,19 +17,6 @@
#define PARSER_IN_EXPR 2
/** \ingroup header
- * HEADER_EXT_FORMAT format function prototype.
- * This will only ever be passed RPM_INT32_TYPE or RPM_STRING_TYPE to
- * help keep things simple.
- *
- * @param td tag data container
- * @param formatPrefix
- * @return formatted string
- */
-typedef char * (*headerTagFormatFunction) (rpmtd td, char * formatPrefix);
-
-extern void *rpmHeaderFormatFuncByName(const char *fmt);
-
-/** \ingroup header
*/
typedef struct sprintfTag_s * sprintfTag;
struct sprintfTag_s {