diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-01-13 20:32:18 +0200 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-01-13 20:32:18 +0200 |
commit | a59347fdacd80e26394e519e578ba73de729e7a2 (patch) | |
tree | 4848e72571a28606a97887dd5fec4259c14f8ed9 /src/apk_database.h | |
parent | af8f0545604a497e1852c977dfdcce1676d9f144 (diff) | |
download | apk-tools-a59347fdacd80e26394e519e578ba73de729e7a2.tar.gz apk-tools-a59347fdacd80e26394e519e578ba73de729e7a2.tar.bz2 apk-tools-a59347fdacd80e26394e519e578ba73de729e7a2.tar.xz apk-tools-a59347fdacd80e26394e519e578ba73de729e7a2.zip |
db: hash files by name, instead of keep two directory lists
Diffstat (limited to 'src/apk_database.h')
-rw-r--r-- | src/apk_database.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apk_database.h b/src/apk_database.h index e5d4957..14df1a2 100644 --- a/src/apk_database.h +++ b/src/apk_database.h @@ -20,7 +20,7 @@ #define APK_MAX_REPOS 32 struct apk_db_file { - struct hlist_node dir_files_list; + struct hlist_node hash_node; struct hlist_node diri_files_list; struct apk_db_dir_instance *diri; @@ -79,6 +79,7 @@ struct apk_database { struct { struct list_head packages; struct apk_hash dirs; + struct apk_hash files; struct { unsigned files; unsigned dirs; |