diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-05-16 17:46:49 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-05-16 17:46:49 +0300 |
commit | 019ee37f6279cc6e114359224ace85cb2260f6e0 (patch) | |
tree | ba7fb7b6310c1ba3125a8be5fccb906e43faed90 /lib/header.h | |
parent | cbf1a479ee62a5538065b92dcd8d9eb8e842bdda (diff) | |
download | librpm-tizen-019ee37f6279cc6e114359224ace85cb2260f6e0.tar.gz librpm-tizen-019ee37f6279cc6e114359224ace85cb2260f6e0.tar.bz2 librpm-tizen-019ee37f6279cc6e114359224ace85cb2260f6e0.zip |
Eliminate rpmHeaderFormats and rpmHeaderTagExtensions from the API
Diffstat (limited to 'lib/header.h')
-rw-r--r-- | lib/header.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/lib/header.h b/lib/header.h index cb1c624c2..52556c4fb 100644 --- a/lib/header.h +++ b/lib/header.h @@ -37,19 +37,6 @@ struct headerTagTableEntry_s { */ typedef struct headerTagIndices_s * headerTagIndices; -/** \ingroup header - * Define header tag output formats. - */ -typedef const struct headerSprintfExtension_s * headerSprintfExtension; -struct headerSprintfExtension_s { - const char *name; /*!< Name of extension. */ - void *func; /*!< Pointer to formatter function. */ -}; - -void *rpmHeaderFormatFunc(const char *fmt); - -void *rpmHeaderTagFunc(rpmTag tag); - /** \ingroup rpmtag * Automatically generated table of tag name/value pairs. */ @@ -65,12 +52,6 @@ extern const int rpmTagTableSize; extern headerTagIndices const rpmTags; /** \ingroup header - * Table of query format extensions. - */ -extern const struct headerSprintfExtension_s rpmHeaderFormats[]; -extern const struct headerSprintfExtension_s rpmHeaderTagExtensions[]; - -/** \ingroup header * Include calculation for 8 bytes of (magic, 0)? */ enum hMagic { @@ -416,8 +397,7 @@ char * headerFormat(Header h, const char * fmt, errmsg_t * errmsg); * @return formatted output string (malloc'ed) */ char * headerSprintf(Header h, const char * fmt, - const struct headerTagTableEntry_s * tbltags, - const struct headerSprintfExtension_s * extensions, + void * tbltags, void * extensions, errmsg_t * errmsg) RPM_GNUC_DEPRECATED; /** \ingroup header |