diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-05-15 15:13:03 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-05-15 15:13:03 +0300 |
commit | a06b172d8d76c16011ba74ec9b60640ff07439da (patch) | |
tree | c70646fa6ccd574708b431ac3b365562d2f7d8f1 /lib/header.h | |
parent | 25edcbcf4b5a420ef101c9622d0c4bcb6bcfd464 (diff) | |
download | librpm-tizen-a06b172d8d76c16011ba74ec9b60640ff07439da.tar.gz librpm-tizen-a06b172d8d76c16011ba74ec9b60640ff07439da.tar.bz2 librpm-tizen-a06b172d8d76c16011ba74ec9b60640ff07439da.zip |
Change headerTagTagFunction() to take tag container as arg
- minimal, crude conversion of all formatTag() functions for now
Diffstat (limited to 'lib/header.h')
-rw-r--r-- | lib/header.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/header.h b/lib/header.h index 320087056..8e9ff7dce 100644 --- a/lib/header.h +++ b/lib/header.h @@ -46,7 +46,7 @@ enum headerSprintfExtensionType { }; /** \ingroup header - * HEADER_EXT_TAG format function prototype. + * HEADER_EXT_FORMAT format function prototype. * This will only ever be passed RPM_INT32_TYPE or RPM_STRING_TYPE to * help keep things simple. * @@ -62,21 +62,14 @@ typedef char * (*headerTagFormatFunction)(rpmTagType type, size_t padding, rpm_count_t element); /** \ingroup header - * HEADER_EXT_FORMAT format function prototype. + * HEADER_EXT_TAG format function prototype. * This is allowed to fail, which indicates the tag doesn't exist. * * @param h header - * @retval *type tag type - * @retval *data tag value - * @retval *count no. of data items - * @retval *freedata data-was-malloc'ed indicator + * @retval td tag data container * @return 0 on success */ -typedef int (*headerTagTagFunction) (Header h, - rpmTagType * type, - rpm_data_t * data, - rpm_count_t * count, - int * freeData); +typedef int (*headerTagTagFunction) (Header h, rpmtd td); /** \ingroup header * Define header tag output formats. |