Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/db.c')
-rw-r--r--lib/libalpm/db.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/libalpm/db.c b/lib/libalpm/db.c
index 7536e678..9d75c5c0 100644
--- a/lib/libalpm/db.c
+++ b/lib/libalpm/db.c
@@ -368,6 +368,19 @@ alpm_list_t SYMEXPORT *alpm_db_getgrpcache(pmdb_t *db)
return(_alpm_db_get_grpcache(db));
}
+/** Tests a database
+ * @param db pointer to the package database to search in
+ * @return the list of problems found on success, NULL on error
+ */
+alpm_list_t SYMEXPORT *alpm_db_test(pmdb_t *db)
+{
+ /* Sanity checks */
+ ASSERT(handle != NULL, return(NULL));
+ ASSERT(db != NULL, return(NULL));
+
+ return(_alpm_db_test(db));
+}
+
/** Searches a database
* @param db pointer to the package database to search in
* @param needles the list of strings to search for