summaryrefslogtreecommitdiffstats
path: root/src/pacman/package.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/package.h')
-rw-r--r--src/pacman/package.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/pacman/package.h b/src/pacman/package.h
index 26333c5a..6f71d20e 100644
--- a/src/pacman/package.h
+++ b/src/pacman/package.h
@@ -22,12 +22,18 @@
#include <alpm.h>
-void dump_pkg_full(pmpkg_t *pkg, int level);
-void dump_pkg_sync(pmpkg_t *pkg, const char *treename, int level);
+/* TODO it would be nice if we didn't duplicate a backend type */
+enum pkg_from {
+ PKG_FROM_FILE = 1,
+ PKG_FROM_LOCALDB,
+ PKG_FROM_SYNCDB
+};
-void dump_pkg_backups(pmpkg_t *pkg);
-void dump_pkg_files(pmpkg_t *pkg, int quiet);
-void dump_pkg_changelog(pmpkg_t *pkg);
+void dump_pkg_full(alpm_pkg_t *pkg, enum pkg_from from, int extra);
+
+void dump_pkg_backups(alpm_pkg_t *pkg);
+void dump_pkg_files(alpm_pkg_t *pkg, int quiet);
+void dump_pkg_changelog(alpm_pkg_t *pkg);
#endif /* _PM_PACKAGE_H */