summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-10-27 08:41:01 +0200
committerDan McGee <dan@archlinux.org>2011-06-24 21:04:39 +0200
commit777bdc6c508a1a94dfa0854a34c7964ba0af02c9 (patch)
tree9c03e4239d0cd0d9e3c2f21385113d1ba96dec9a /lib/libalpm/util.h
parent719e0d3ddb300a8f0f8367b516c0e3c9579c4448 (diff)
downloadpacman-777bdc6c508a1a94dfa0854a34c7964ba0af02c9.tar.gz
pacman-777bdc6c508a1a94dfa0854a34c7964ba0af02c9.tar.xz
Make sync DB reading a bit more flexible
We can reorganize things a bit to not require reading a directory-only entry first (or at all). This was noticed while working on some pactest improvements, but should be a good step forward anyway. Also make _alpm_splitname() a bit more generic in where it stores the data it parses. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r--lib/libalpm/util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h
index 778e20fe..c68b07ba 100644
--- a/lib/libalpm/util.h
+++ b/lib/libalpm/util.h
@@ -109,7 +109,8 @@ const char *_alpm_filecache_setup(pmhandle_t *handle);
int _alpm_lstat(const char *path, struct stat *buf);
int _alpm_test_md5sum(const char *filepath, const char *md5sum);
int _alpm_archive_fgets(struct archive *a, struct archive_read_buffer *b);
-int _alpm_splitname(const char *target, pmpkg_t *pkg);
+int _alpm_splitname(const char *target, char **name, char **version,
+ unsigned long *name_hash);
unsigned long _alpm_hash_sdbm(const char *str);
long _alpm_parsedate(const char *line);