mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
started some doxygen comment blocks
This commit is contained in:
parent
a36ded25eb
commit
586370b744
@ -52,15 +52,19 @@
|
|||||||
|
|
||||||
#define PM_LOCK "/tmp/pacman.lck"
|
#define PM_LOCK "/tmp/pacman.lck"
|
||||||
|
|
||||||
|
|
||||||
/* Globals */
|
/* Globals */
|
||||||
pmhandle_t *handle = NULL;
|
pmhandle_t *handle = NULL;
|
||||||
enum __pmerrno_t pm_errno;
|
enum __pmerrno_t pm_errno;
|
||||||
|
|
||||||
/*
|
/** @defgroup interface Interface Functions
|
||||||
* Library
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/** Initializes the library. This must be called before any other
|
||||||
|
* functions are called.
|
||||||
|
* @param root the full path of the root we'll be installing to (usually /)
|
||||||
|
* @return 0 on success, -1 on error (pm_errno is set accordingly)
|
||||||
|
*/
|
||||||
int alpm_initialize(char *root)
|
int alpm_initialize(char *root)
|
||||||
{
|
{
|
||||||
char str[PATH_MAX];
|
char str[PATH_MAX];
|
||||||
@ -91,6 +95,9 @@ int alpm_initialize(char *root)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Release the library. This should be the last alpm call you make.
|
||||||
|
* @return 0 on success, -1 on error (pm_errno is set accordingly)
|
||||||
|
*/
|
||||||
int alpm_release()
|
int alpm_release()
|
||||||
{
|
{
|
||||||
PMList *i;
|
PMList *i;
|
||||||
@ -124,9 +131,10 @@ int alpm_release()
|
|||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup options Library Options
|
||||||
* Options
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int alpm_set_option(unsigned char parm, unsigned long data)
|
int alpm_set_option(unsigned char parm, unsigned long data)
|
||||||
@ -145,9 +153,10 @@ int alpm_get_option(unsigned char parm, long *data)
|
|||||||
|
|
||||||
return(handle_get_option(handle, parm, data));
|
return(handle_get_option(handle, parm, data));
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup databases Database Functions
|
||||||
* Databases
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
pmdb_t *alpm_db_register(char *treename)
|
pmdb_t *alpm_db_register(char *treename)
|
||||||
@ -347,9 +356,10 @@ PMList *alpm_db_getgrpcache(pmdb_t *db)
|
|||||||
|
|
||||||
return(db_get_grpcache(db));
|
return(db_get_grpcache(db));
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup packages Package Functions
|
||||||
* Packages
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void *alpm_pkg_getinfo(pmpkg_t *pkg, unsigned char parm)
|
void *alpm_pkg_getinfo(pmpkg_t *pkg, unsigned char parm)
|
||||||
@ -472,9 +482,10 @@ int alpm_pkg_vercmp(const char *ver1, const char *ver2)
|
|||||||
{
|
{
|
||||||
return(rpmvercmp(ver1, ver2));
|
return(rpmvercmp(ver1, ver2));
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup groups Group Functions
|
||||||
* Groups
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void *alpm_grp_getinfo(pmgrp_t *grp, unsigned char parm)
|
void *alpm_grp_getinfo(pmgrp_t *grp, unsigned char parm)
|
||||||
@ -494,9 +505,10 @@ void *alpm_grp_getinfo(pmgrp_t *grp, unsigned char parm)
|
|||||||
|
|
||||||
return(data);
|
return(data);
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup sync Sync Functions
|
||||||
* Sync operations
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void *alpm_sync_getinfo(pmsyncpkg_t *sync, unsigned char parm)
|
void *alpm_sync_getinfo(pmsyncpkg_t *sync, unsigned char parm)
|
||||||
@ -517,9 +529,10 @@ void *alpm_sync_getinfo(pmsyncpkg_t *sync, unsigned char parm)
|
|||||||
|
|
||||||
return(data);
|
return(data);
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup trans Transaction Functions
|
||||||
* Transactions
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void *alpm_trans_getinfo(unsigned char parm)
|
void *alpm_trans_getinfo(unsigned char parm)
|
||||||
@ -636,9 +649,10 @@ int alpm_trans_release()
|
|||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup dep Dependency Functions
|
||||||
* Dependencies
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void *alpm_dep_getinfo(pmdepmissing_t *miss, unsigned char parm)
|
void *alpm_dep_getinfo(pmdepmissing_t *miss, unsigned char parm)
|
||||||
@ -661,9 +675,10 @@ void *alpm_dep_getinfo(pmdepmissing_t *miss, unsigned char parm)
|
|||||||
|
|
||||||
return(data);
|
return(data);
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup log Logging Functions
|
||||||
* Log facilities
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int alpm_logaction(char *fmt, ...)
|
int alpm_logaction(char *fmt, ...)
|
||||||
@ -693,9 +708,10 @@ int alpm_logaction(char *fmt, ...)
|
|||||||
|
|
||||||
return(_alpm_log_action(handle->usesyslog, handle->logfd, str));
|
return(_alpm_log_action(handle->usesyslog, handle->logfd, str));
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup list List Manipulation Functions
|
||||||
* Lists wrappers
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
PMList *alpm_list_first(PMList *list)
|
PMList *alpm_list_first(PMList *list)
|
||||||
@ -725,9 +741,10 @@ int alpm_list_free(PMList *entry)
|
|||||||
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*
|
/** @defgroup misc Miscellaneous Functions
|
||||||
* Misc wrappers
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *alpm_get_md5sum(char *name)
|
char *alpm_get_md5sum(char *name)
|
||||||
@ -736,5 +753,6 @@ char *alpm_get_md5sum(char *name)
|
|||||||
|
|
||||||
return(MDFile(name));
|
return(MDFile(name));
|
||||||
}
|
}
|
||||||
|
/* @} */
|
||||||
|
|
||||||
/* vim: set ts=2 sw=2 noet: */
|
/* vim: set ts=2 sw=2 noet: */
|
||||||
|
Loading…
Reference in New Issue
Block a user