summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-05-01 10:12:13 +0200
committerAllan McRae <allan@archlinux.org>2012-12-14 04:45:12 +0100
commit0445c68d9b7738553dd1a5088110b8b0a1e1f7f9 (patch)
treedc71ae968d3a65b87f496635d2f19f162ccdd179 /lib/libalpm/package.h
parentda3a0333de34b37d073e1d27e9a07a7fa80025ee (diff)
downloadpacman-0445c68d9b7738553dd1a5088110b8b0a1e1f7f9.tar.gz
pacman-0445c68d9b7738553dd1a5088110b8b0a1e1f7f9.tar.xz
Add internal functions for reading mtree file from local db
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index a915bc33..373fb90f 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -26,6 +26,10 @@
#include <sys/types.h> /* off_t */
+/* libarchive */
+#include <archive.h>
+#include <archive_entry.h>
+
#include "alpm.h"
#include "backup.h"
#include "db.h"
@@ -64,6 +68,10 @@ struct pkg_operations {
size_t (*changelog_read) (void *, size_t, const alpm_pkg_t *, void *);
int (*changelog_close) (const alpm_pkg_t *, void *);
+ struct archive *(*mtree_open) (alpm_pkg_t *);
+ int (*mtree_next) (const alpm_pkg_t *, struct archive *, struct archive_entry **);
+ int (*mtree_close) (const alpm_pkg_t *, struct archive *);
+
int (*force_load) (alpm_pkg_t *);
};