From db769f667d93d9127b570570564589337c793fbe Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sun, 15 Oct 2006 21:06:08 +0000 Subject: Added alpm function docs along pacman.c : Removed link to frugalware wiki sync.c : do not display Uncompressed size if 0 (archlinux has no USIZE) --- doc/man3/alpm_misc.3 | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 doc/man3/alpm_misc.3 (limited to 'doc/man3/alpm_misc.3') diff --git a/doc/man3/alpm_misc.3 b/doc/man3/alpm_misc.3 new file mode 100644 index 00000000..d2e8a3b0 --- /dev/null +++ b/doc/man3/alpm_misc.3 @@ -0,0 +1,93 @@ +.TH "Miscellaneous Functions" 3 "16 Oct 2006" "libalpm" \" -*- nroff -*- +.ad l +.nh +.SH NAME +Miscellaneous Functions \- Various libalpm functions. + +.PP +.SS "Functions" + +.in +1c +.ti -1c +.RI "char * \fBalpm_get_md5sum\fP (char *name)" +.br +.ti -1c +.RI "char * \fBalpm_get_sha1sum\fP (char *name)" +.br +.ti -1c +.RI "char * \fBalpm_fetch_pkgurl\fP (char *url)" +.br +.ti -1c +.RI "int \fBalpm_parse_config\fP (char *file, alpm_cb_db_register callback, const char *this_section)" +.br +.in -1c +.SH "Detailed Description" +.PP +Various libalpm functions. +.PP +.SH "Function Documentation" +.PP +.SS "char* alpm_fetch_pkgurl (char * url)" +.PP +Fetch a remote pkg. +.PP +\fBParameters:\fP +.RS 4 +\fIurl\fP +.RE +.PP +\fBReturns:\fP +.RS 4 +the downloaded filename on success, NULL on error +.RE +.PP + +.SS "char* alpm_get_md5sum (char * name)" +.PP +Get the md5 sum of file. +.PP +\fBParameters:\fP +.RS 4 +\fIname\fP name of the file +.RE +.PP +\fBReturns:\fP +.RS 4 +the checksum on success, NULL on error +.RE +.PP + +.SS "char* alpm_get_sha1sum (char * name)" +.PP +Get the sha1 sum of file. +.PP +\fBParameters:\fP +.RS 4 +\fIname\fP name of the file +.RE +.PP +\fBReturns:\fP +.RS 4 +the checksum on success, NULL on error +.RE +.PP + +.SS "int alpm_parse_config (char * file, alpm_cb_db_register callback, const char * this_section)" +.PP +Parses a configuration file. +.PP +\fBParameters:\fP +.RS 4 +\fIfile\fP path to the config file. +.br +\fIcallback\fP a function to be called upon new database creation +.br +\fIthis_section\fP the config current section being parsed +.RE +.PP +\fBReturns:\fP +.RS 4 +0 on success, -1 on error (pm_errno is set accordingly) +.RE +.PP + -- cgit v1.2.3-24-g4f1b