summaryrefslogtreecommitdiff
path: root/lib/header.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-10-10 15:53:12 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-10-10 15:53:12 +0300
commit56f3545c68796b1d1fb95ae4609395bc269e242a (patch)
tree607be087bc472537b3e2edefb6f71793eea9c3dd /lib/header.h
parent83c4098e4f8affdb7f52aa5ed14ac15d7785f5b9 (diff)
downloadrpm-56f3545c68796b1d1fb95ae4609395bc269e242a.tar.gz
rpm-56f3545c68796b1d1fb95ae4609395bc269e242a.tar.bz2
rpm-56f3545c68796b1d1fb95ae4609395bc269e242a.zip
Add headerConvert() "proxy" for performing various conversions on header data
Diffstat (limited to 'lib/header.h')
-rw-r--r--lib/header.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/header.h b/lib/header.h
index 8067952c6..357accd7d 100644
--- a/lib/header.h
+++ b/lib/header.h
@@ -369,6 +369,19 @@ rpm_color_t headerGetColor(Header h);
*/
int headerIsSource(Header h);
+typedef enum headerConvOps_e {
+ HEADERCONV_EXPANDFILELIST = 0,
+ HEADERCONV_COMPRESSFILELIST = 1,
+ HEADERCONV_RETROFIT_V3 = 2,
+} headerConvOps;
+
+/** \ingroup header
+ * Convert header to/from (legacy) data presentation
+ * @param h header
+ * @param op operation
+ * @return 1 on success, 0 on failure
+ */
+int headerConvert(Header h, headerConvOps op);
#ifdef __cplusplus
}