From dbf59a6b141213b0afc962c71347eb83f8bcab73 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 14 Dec 2010 11:56:32 -0600 Subject: Add hash_sdbm function This is prepping for the addition of a hash field to each package to greatly speed up the string comparisons we frequently do on package name in _alpm_pkg_find. Signed-off-by: Dan McGee --- lib/libalpm/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/util.h') diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 78877a27..0b804205 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -78,6 +78,7 @@ int _alpm_lstat(const char *path, struct stat *buf); int _alpm_test_md5sum(const char *filepath, const char *md5sum); char *_alpm_archive_fgets(char *line, size_t size, struct archive *a); int _alpm_splitname(const char *target, pmpkg_t *pkg); +unsigned long _alpm_hash_sdbm(const char *str); #ifndef HAVE_STRSEP char *strsep(char **, const char *); -- cgit v1.2.3-24-g4f1b