From d46bb6b27b05579acf5665368c111b4cc41eedcb Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 18 Jul 2012 12:09:24 +1000 Subject: 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 Signed-off-by: Dan McGee --- lib/libalpm/filelist.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/libalpm/filelist.h') 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); -- cgit v1.2.3-24-g4f1b