summaryrefslogtreecommitdiff
path: root/doc/man3/alpm_options.3
blob: c43a30393d94476df9b3c6227bfe7bca0ffe0099 (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
.TH "Library Options" 3 "16 Oct 2006" "libalpm" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Library Options \- Functions to set and get libalpm options.  

.PP
.SS "Functions"

.in +1c
.ti -1c
.RI "int \fBalpm_set_option\fP (unsigned char parm, unsigned long data)"
.br
.ti -1c
.RI "int \fBalpm_get_option\fP (unsigned char parm, long *data)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Functions to set and get libalpm options. 
.PP
.SH "Function Documentation"
.PP 
.SS "int alpm_get_option (unsigned char parm, long * data)"
.PP
Get the value of a library option. 
.PP
\fBParameters:\fP
.RS 4
\fIparm\fP the parameter to get 
.br
\fIdata\fP pointer argument to get the value in 
.RE
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly) 
.RE
.PP

.SS "int alpm_set_option (unsigned char parm, unsigned long data)"
.PP
Set a library option. 
.PP
\fBParameters:\fP
.RS 4
\fIparm\fP the name of the parameter 
.br
\fIdata\fP the value of the parameter 
.RE
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly) 
.RE
.PP