From 0445c68d9b7738553dd1a5088110b8b0a1e1f7f9 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 1 May 2012 18:12:13 +1000 Subject: Add internal functions for reading mtree file from local db Signed-off-by: Allan McRae --- lib/libalpm/package.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/libalpm/package.h') 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 /* off_t */ +/* libarchive */ +#include +#include + #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 *); }; -- cgit v1.2.3-24-g4f1b