summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/db.h
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2010-10-13 09:55:55 +0200
committerAllan McRae <allan@archlinux.org>2010-10-13 15:53:18 +0200
commit0909a72000b03332c5203b16b6a4e862c0662e03 (patch)
treefb82a6174d6938cf6a1902a0aa336176f818da6b /lib/libalpm/db.h
parentc56b576f6fef464f82f425219ef386fe8b742899 (diff)
downloadpacman-0909a72000b03332c5203b16b6a4e862c0662e03.tar.gz
pacman-0909a72000b03332c5203b16b6a4e862c0662e03.tar.xz
Move database handling utility functions
Move splitname, checkdbdir, get_pkgpath into db.{h,c} as these will be needed to parse both the local and sync databases during the initial splitting. They will be moved out of db.{h,c} at to more appropriate locations at a later stage. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/db.h')
-rw-r--r--lib/libalpm/db.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libalpm/db.h b/lib/libalpm/db.h
index b9f89ffd..f4559fe9 100644
--- a/lib/libalpm/db.h
+++ b/lib/libalpm/db.h
@@ -93,6 +93,10 @@ void _alpm_db_free_grpcache(pmdb_t *db);
alpm_list_t *_alpm_db_get_grpcache(pmdb_t *db);
pmgrp_t *_alpm_db_get_grpfromcache(pmdb_t *db, const char *target);
+int splitname(const char *target, pmpkg_t *pkg);
+int checkdbdir(pmdb_t *db);
+char *get_pkgpath(pmdb_t *db, pmpkg_t *info);
+
#endif /* _ALPM_DB_H */
/* vim: set ts=2 sw=2 noet: */