[pacman-dev] [PATCH] Improved documentation for alpm_db_search() parameters

Allan McRae allan at archlinux.org
Thu Nov 21 23:35:58 UTC 2019


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 lib/libalpm/alpm.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index d3630385..c200a5d8 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -997,7 +997,8 @@ alpm_list_t *alpm_db_get_groupcache(alpm_db_t *db);
 /** Searches a database with regular expressions.
  * @param db pointer to the package database to search in
  * @param needles a list of regular expressions to search for
- * @param ret the list of packages matching all regular expressions
+ * @param ret pointer to list for storing packages matching all
+ * regular expressions - must point to an empty (NULL) alpm_list_t *.
  * @return 0 on success, -1 on error (pm_errno is set accordingly)
  */
 int alpm_db_search(alpm_db_t *db, const alpm_list_t *needles,
-- 
2.24.0


More information about the pacman-dev mailing list