From 0909a72000b03332c5203b16b6a4e862c0662e03 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Wed, 13 Oct 2010 17:55:55 +1000 Subject: 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 --- lib/libalpm/db.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libalpm/db.h') 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: */ -- cgit v1.2.3-24-g4f1b