diff options
author | Allan McRae <allan@archlinux.org> | 2012-05-01 18:12:13 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2012-12-14 13:45:12 +1000 |
commit | 0445c68d9b7738553dd1a5088110b8b0a1e1f7f9 (patch) | |
tree | dc71ae968d3a65b87f496635d2f19f162ccdd179 /lib/libalpm/package.c | |
parent | da3a0333de34b37d073e1d27e9a07a7fa80025ee (diff) | |
download | 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.c')
-rw-r--r-- | lib/libalpm/package.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 853771f8..0909ba9b 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -121,6 +121,23 @@ static int _pkg_changelog_close(const alpm_pkg_t UNUSED *pkg, return EOF; } +static struct archive *_pkg_mtree_open(alpm_pkg_t UNUSED *pkg) +{ + return NULL; +} + +static int _pkg_mtree_next(const alpm_pkg_t UNUSED *pkg, + struct archive UNUSED *archive, struct archive_entry UNUSED **entry) +{ + return -1; +} + +static int _pkg_mtree_close(const alpm_pkg_t UNUSED *pkg, + struct archive UNUSED *archive) +{ + return -1; +} + static int _pkg_force_load(alpm_pkg_t UNUSED *pkg) { return 0; } /** The standard package operations struct. Get fields directly from the @@ -152,6 +169,10 @@ struct pkg_operations default_pkg_ops = { .changelog_read = _pkg_changelog_read, .changelog_close = _pkg_changelog_close, + .mtree_open = _pkg_mtree_open, + .mtree_next = _pkg_mtree_next, + .mtree_close = _pkg_mtree_close, + .force_load = _pkg_force_load, }; |