summaryrefslogtreecommitdiffstats
path: root/doc/man3/alpm_misc.3
blob: d2e8a3b013e6fe97fe073de8024acf5d8f1b7458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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