diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-05 09:27:26 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-05 09:27:26 +0000 |
commit | 325e3b6b98ee4ca217b153157936b77dc570bb57 (patch) | |
tree | 3a1f892f1e46c129be6370e9e44960e9be3e08ea /lib/libalpm/conflict.h | |
parent | c432d525064dc9fd96bd32ade922740defd0c766 (diff) | |
download | pacman-325e3b6b98ee4ca217b153157936b77dc570bb57.tar.xz |
added a pmconflict_t structure to handle file conflicts
Diffstat (limited to 'lib/libalpm/conflict.h')
-rw-r--r-- | lib/libalpm/conflict.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libalpm/conflict.h b/lib/libalpm/conflict.h index 5d57ea8c..c8143641 100644 --- a/lib/libalpm/conflict.h +++ b/lib/libalpm/conflict.h @@ -23,6 +23,15 @@ #include "db.h" +#define CONFLICT_FILE_LEN 512 + +typedef struct __pmconflict_t { + char target[PKG_NAME_LEN]; + unsigned char type; + char file[CONFLICT_FILE_LEN]; + char ctarget[PKG_NAME_LEN]; +} pmconflict_t; + PMList *checkconflicts(pmdb_t *db, PMList *packages); PMList *db_find_conflicts(pmdb_t *db, PMList *targets, char *root, PMList **skip_list); |