summaryrefslogtreecommitdiffstats
path: root/src/pacman/package.h
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2011-08-29 03:51:32 +0200
committerDan McGee <dan@archlinux.org>2011-08-29 06:30:10 +0200
commit3a458783a2617b7b22a756f95b5f66f3da79146f (patch)
treefbb30be3953691a35ddf31181738ddd028aa94bd /src/pacman/package.h
parent2cfcc874b9332ad207398b9e20dc8880d93e8ae4 (diff)
downloadpacman-3a458783a2617b7b22a756f95b5f66f3da79146f.tar.gz
pacman-3a458783a2617b7b22a756f95b5f66f3da79146f.tar.xz
Removed multiple definitions of pkgfrom_t
libalpm now exports type alpm_pkgfrom_t in alpm.h, which may be used by frontends. Pacman now uses alpm_pkgfrom_t instead of replicating that type (pkg_from as was in src/pacman/package.h) Updated API change in README. Signed-off-by: Diogo Sousa <diogogsousa@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/package.h')
-rw-r--r--src/pacman/package.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/pacman/package.h b/src/pacman/package.h
index 6f71d20e..4bbc2ba0 100644
--- a/src/pacman/package.h
+++ b/src/pacman/package.h
@@ -22,14 +22,7 @@
#include <alpm.h>
-/* 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_full(alpm_pkg_t *pkg, enum pkg_from from, int extra);
+void dump_pkg_full(alpm_pkg_t *pkg, alpm_pkgfrom_t from, int extra);
void dump_pkg_backups(alpm_pkg_t *pkg);
void dump_pkg_files(alpm_pkg_t *pkg, int quiet);