summaryrefslogtreecommitdiff
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-08 23:25:45 -0500
committerDan McGee <dan@archlinux.org>2011-08-09 16:11:22 -0500
commitce74f76a4c923f9c13463189dedbdb04683b2142 (patch)
tree04bdc82ec1024c5486c8624029956dbee7411c86 /lib/libalpm/alpm.h
parent76dfea6e83616f094b4d516e5139c2ffa2eaabff (diff)
downloadpacman-ce74f76a4c923f9c13463189dedbdb04683b2142.tar.xz
Conflict comparison performance enhancements
* Add *_hash fields to conflict struct and populate them * Remove unnecessary backwards string comparisons Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 8a95f26a..32db687a 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -151,6 +151,8 @@ typedef struct _alpm_depmissing_t {
/** Conflict */
typedef struct _alpm_conflict_t {
+ unsigned long package1_hash;
+ unsigned long package2_hash;
char *package1;
char *package2;
char *reason;