summaryrefslogtreecommitdiff
path: root/lib/libalpm/filelist.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-07-18 12:09:24 +1000
committerDan McGee <dan@archlinux.org>2012-08-02 09:40:44 -0500
commitd46bb6b27b05579acf5665368c111b4cc41eedcb (patch)
tree5e5f6e4b3d2d51fa7fdbea892f570f7f0ce800f4 /lib/libalpm/filelist.h
parent72d3713cc7865af5f4d91410ad56ed4287be6109 (diff)
downloadpacman-d46bb6b27b05579acf5665368c111b4cc41eedcb.tar.xz
Split _alpm_filelist_operation function
To improve conflict checking, we will need to make these functions diverge to an extent where having two separate functions will be preferable. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/filelist.h')
-rw-r--r--lib/libalpm/filelist.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libalpm/filelist.h b/lib/libalpm/filelist.h
index 991045e9..2d5cbc03 100644
--- a/lib/libalpm/filelist.h
+++ b/lib/libalpm/filelist.h
@@ -21,13 +21,12 @@
#include "alpm.h"
-enum filelist_op {
- DIFFERENCE = 0,
- INTERSECT = 1
-};
-alpm_list_t *_alpm_filelist_operation(alpm_filelist_t *filesA,
- alpm_filelist_t *filesB, enum filelist_op operation);
+alpm_list_t *_alpm_filelist_difference(alpm_filelist_t *filesA,
+ alpm_filelist_t *filesB);
+
+alpm_list_t *_alpm_filelist_intersection(alpm_filelist_t *filesA,
+ alpm_filelist_t *filesB);
int _alpm_files_cmp(const void *f1, const void *f2);