diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-06-18 10:59:45 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-06-18 10:59:45 +0300 |
commit | 312ab62fe10b05874b107084c26e9110dd13e84f (patch) | |
tree | f5885b21ec47f15bb6ebc41d59fe6970b028cec3 /lib/header.h | |
parent | 19415eaf046cb8f1a96f0d8bee5ae2433dc1b707 (diff) | |
download | rpm-312ab62fe10b05874b107084c26e9110dd13e84f.tar.gz rpm-312ab62fe10b05874b107084c26e9110dd13e84f.tar.bz2 rpm-312ab62fe10b05874b107084c26e9110dd13e84f.zip |
Add headerMod() to headerPut() etc family
- just a dumb wrapper around old headerModifyEntry() for now
Diffstat (limited to 'lib/header.h')
-rw-r--r-- | lib/header.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/header.h b/lib/header.h index 98a74bdc4..aa8378f6d 100644 --- a/lib/header.h +++ b/lib/header.h @@ -300,6 +300,17 @@ int headerAddI18NString(Header h, rpmTag tag, const char * string, * Modify tag in header. * If there are multiple entries with this tag, the first one gets replaced. * @param h header + * @param td tag data container + * @return 1 on success, 0 on failure + */ +int headerMod(Header h, rpmtd td); + +/** \ingroup header + * Modify tag in header. + * If there are multiple entries with this tag, the first one gets replaced. + * @deprecated Use headerMod() instead + * + * @param h header * @param tag tag * @param type tag value data type * @param p pointer to tag value(s) |