diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-05-20 09:40:24 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-05-21 12:04:50 +0300 |
commit | 9b32e58e173799b750a12c1bac51a7d49aadd4d6 (patch) | |
tree | 915987a17f848e6988a109a95f0bffe85d7779b4 /lib/headerfmt.c | |
parent | d5381c16a794e03c0e4f202daa3c882dc1876f41 (diff) | |
download | librpm-tizen-9b32e58e173799b750a12c1bac51a7d49aadd4d6.tar.gz librpm-tizen-9b32e58e173799b750a12c1bac51a7d49aadd4d6.tar.bz2 librpm-tizen-9b32e58e173799b750a12c1bac51a7d49aadd4d6.zip |
Add rpmtdFormat() method and enumeration of supported formats
- permits formatting any rpmtd data to our supported formats over
iteration
Diffstat (limited to 'lib/headerfmt.c')
-rw-r--r-- | lib/headerfmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/headerfmt.c b/lib/headerfmt.c index 4c9b3a5c3..77c36076f 100644 --- a/lib/headerfmt.c +++ b/lib/headerfmt.c @@ -28,7 +28,7 @@ typedef char * (*headerTagFormatFunction) (rpmtd td, char * formatPrefix, size_t padding); -extern void *rpmHeaderFormatFunc(const char *fmt); +extern void *rpmHeaderFormatFuncByName(const char *fmt); /** \ingroup header */ @@ -258,7 +258,7 @@ static int findTag(headerSprintfArgs hsa, sprintfToken token, const char * name) bingo: /* Search extensions for specific format. */ if (stag->type != NULL) - stag->fmt = rpmHeaderFormatFunc(stag->type); + stag->fmt = rpmHeaderFormatFuncByName(stag->type); return 0; } |