summaryrefslogtreecommitdiffstats
path: root/doc/man3/alpm_misc.3
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-10-15 23:06:08 +0200
committerAaron Griffin <aaron@archlinux.org>2006-10-15 23:06:08 +0200
commitdb769f667d93d9127b570570564589337c793fbe (patch)
tree94f90c61fcf2e988f2a718b06925e0df20a29332 /doc/man3/alpm_misc.3
parente037328e219697f8453dc25df2b8f0d25bbc1acc (diff)
downloadpacman-db769f667d93d9127b570570564589337c793fbe.tar.gz
pacman-db769f667d93d9127b570570564589337c793fbe.tar.xz
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)
Diffstat (limited to 'doc/man3/alpm_misc.3')
-rw-r--r--doc/man3/alpm_misc.393
1 files changed, 93 insertions, 0 deletions
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
+