[pacman-dev] [patch] alpm documentation updates

Dan McGee dpmcgee at gmail.com
Sun Jan 7 23:35:29 EST 2007


There is still a lot more to do...someone on this list wants to step
up to the plate and fix up the documentation.

Signed-off-by: Dan McGee <dpmcgee at gmail.com>

---

--- pacman-lib.orig/lib/libalpm/alpm.c	2007-01-03 03:05:13.000000000 -0500
+++ pacman-lib/lib/libalpm/alpm.c	2007-01-07 23:23:26.000000000 -0500
@@ -66,7 +66,7 @@ pmhandle_t *handle = NULL;
 enum __pmerrno_t pm_errno;

 /** \addtogroup alpm_interface Interface Functions
- * @brief Function to initialize and release libalpm
+ * @brief Functions to initialize and release libalpm
  * @{
  */

@@ -127,15 +127,11 @@ int alpm_release()

 	return(0);
 }
-/** @} */

-/** \addtogroup alpm_options Library Options
- * @brief Functions to set and get libalpm options
- * @{
- */
+/** @} */

 /** \addtogroup alpm_databases Database Functions
- * @brief Frunctions to query and manipulate the database of libalpm
+ * @brief Functions to query and manipulate the database of libalpm
  * @{
  */

@@ -553,7 +549,7 @@ int alpm_pkg_vercmp(const char *ver1, co
 }

 /* internal */
-char *_supported_archs[] = {
+static char *_supported_archs[] = {
 	"i586",
 	"i686",
 	"ppc",
@@ -589,7 +585,6 @@ char *alpm_pkg_name_hasarch(char *pkgnam
 	return NULL;
 }

-
 /** @} */

 /** \addtogroup alpm_sync Sync Functions
@@ -611,6 +606,7 @@ pmlist_t *alpm_db_search(pmdb_t *db)

 	return(_alpm_db_search(db, handle->needles));
 }
+
 /** @} */

 /** \addtogroup alpm_trans Transaction Functions
@@ -764,24 +760,7 @@ int alpm_trans_release()

 	return(0);
 }
-/** @} */

-/** \addtogroup alpm_dep Dependency Functions
- * @brief Functions to get informations about a libalpm dependency
- * @{
- */
-/** @} */
-
-/** \addtogroup alpm_conflict File Conflicts Functions
- * @brief Functions to get informations about a libalpm file conflict
- * @{
- */
-
-/** Get informations about a file conflict.
- * @param conflict database conflict structure
- * @param parm name of the info to get
- * @return a void* on success (the value), NULL on error
- */
 /** @} */

 /** \addtogroup alpm_log Logging Functions
@@ -894,6 +873,7 @@ int alpm_list_count(const pmlist_t *list

 	return(_alpm_list_count(list));
 }
+
 /** @} */

 /** \addtogroup alpm_misc Miscellaneous Functions
@@ -1111,7 +1091,7 @@ int alpm_parse_config(char *file, alpm_c
 					if(!strcmp(key, "SERVER")) {
 						/* add to the list */
 						if(alpm_db_setserver(db, ptr) != 0) {
-							/* pm_errno is set by alpm_set_option */
+							/* pm_errno is set by alpm_db_setserver */
 							return(-1);
 						}
 					} else {
@@ -1127,6 +1107,6 @@ int alpm_parse_config(char *file, alpm_c
 	return(0);
 }

-/* @} */
+/** @} */

 /* vim: set ts=2 sw=2 noet: */
--- pacman-lib.orig/doc/libalpm.3.in	2006-02-01 13:04:01.000000000 -0500
+++ pacman-lib/doc/libalpm.3.in	2007-01-07 23:23:23.000000000 -0500
@@ -1,4 +1,4 @@
-.TH libalpm 3 "29 Jan 2006" "libalpm @PM_VERSION@" ""
+.TH libalpm 3 "07 Jan 2007" "libalpm @PM_VERSION@" ""
 .SH NAME
 	libalpm \- Arch Linux Package Management library
 .SH SYNOPSIS
@@ -6,13 +6,10 @@ For ease of access, the libalpm manual h

 .nf
 alpm_databases      Database Functions
-alpm_dep            Dependency Functions
-alpm_groups         Group Functions
 alpm_interface      Interface Functions
 alpm_list           List Functions
 alpm_log            Logging Functions
 alpm_misc           Miscellaneous Functions
-alpm_options        Library Options
 alpm_packages       Package Functions
 alpm_sync           Sync Functions
 alpm_trans          Transaction Functions




More information about the pacman-dev mailing list