summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Fyfe <andrew@neptune-one.net>2007-07-12 21:45:02 +0200
committerDan McGee <dan@archlinux.org>2007-07-12 22:00:58 +0200
commitc0a7d9d82d03d9831f53dbb30357ddb9f10e29ec (patch)
tree9154e6a4ed380eab1327f4b3e82622cd3f7e26de /lib
parentd402583c43a9d409531824573a6021a1965d8ee6 (diff)
downloadpacman-c0a7d9d82d03d9831f53dbb30357ddb9f10e29ec.tar.gz
pacman-c0a7d9d82d03d9831f53dbb30357ddb9f10e29ec.tar.xz
Some doxygen comments.
Signed-off-by: Andrew Fyfe <andrew@neptune-one.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/deps.c2
-rw-r--r--lib/libalpm/trans.c5
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index 1290a7ec..ddbd99a2 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -218,7 +218,7 @@ alpm_list_t *_alpm_sortbydeps(alpm_list_t *targets, pmtranstype_t mode)
* @param db pointer to the local package database
* @param op transaction type
* @param packages an alpm_list_t* of packages to be checked
- * @return an alpm_list_t* of missing_t pointers.
+ * @return an alpm_list_t* of pmpkg_t* of missing_t pointers.
*/
alpm_list_t *_alpm_checkdeps(pmdb_t *db, pmtranstype_t op,
alpm_list_t *packages)
diff --git a/lib/libalpm/trans.c b/lib/libalpm/trans.c
index 32dbc475..d940438e 100644
--- a/lib/libalpm/trans.c
+++ b/lib/libalpm/trans.c
@@ -295,6 +295,11 @@ int _alpm_trans_sysupgrade(pmtrans_t *trans)
return(_alpm_sync_sysupgrade(trans, handle->db_local, handle->dbs_sync));
}
+/** Add a target to the transaction.
+ * @param trans the current transaction
+ * @param target the name of the target to add
+ * @return 0 on success, -1 on error (pm_errno is set accordingly)
+ */
int _alpm_trans_addtarget(pmtrans_t *trans, char *target)
{
ALPM_LOG_FUNC;