summaryrefslogtreecommitdiffstats
path: root/upstream/archlinux/man3/libalpm_handle.3
blob: 2369abf698497002aa96e93d3c23ed63afa66e84 (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
.TH "libalpm_handle" 3 "libalpm" \" -*- nroff -*-
.ad l
.nh
.SH NAME
libalpm_handle \- Handle
.SH SYNOPSIS
.br
.PP
.SS "Typedefs"

.in +1c
.ti -1c
.RI "typedef struct _alpm_handle_t \fBalpm_handle_t\fP"
.br
.RI "The libalpm context handle\&. "
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBalpm_handle_t\fP * \fBalpm_initialize\fP (const char *root, const char *dbpath, \fBalpm_errno_t\fP *err)"
.br
.RI "Initializes the library\&. "
.ti -1c
.RI "int \fBalpm_release\fP (\fBalpm_handle_t\fP *handle)"
.br
.RI "Release the library\&. "
.in -1c
.SH "Detailed Description"
.PP 


Functions to initialize and release libalpm 
.SH "Typedef Documentation"
.PP 
.SS "typedef struct _alpm_handle_t \fBalpm_handle_t\fP"

.PP
The libalpm context handle\&. This struct represents an instance of libalpm\&. 
.SH "Function Documentation"
.PP 
.SS "\fBalpm_handle_t\fP * alpm_initialize (const char * root, const char * dbpath, \fBalpm_errno_t\fP * err)"

.PP
Initializes the library\&. Creates handle, connects to database and creates lockfile\&. This must be called before any other functions are called\&. 
.PP
\fBParameters\fP
.RS 4
\fIroot\fP the root path for all filesystem operations 
.br
\fIdbpath\fP the absolute path to the libalpm database 
.br
\fIerr\fP an optional variable to hold any error return codes 
.RE
.PP
\fBReturns\fP
.RS 4
a context handle on success, NULL on error, err will be set if provided 
.RE
.PP

.SS "int alpm_release (\fBalpm_handle_t\fP * handle)"

.PP
Release the library\&. Disconnects from the database, removes handle and lockfile This should be the last alpm call you make\&. After this returns, handle should be considered invalid and cannot be reused in any way\&. 
.PP
\fBParameters\fP
.RS 4
\fIhandle\fP the context handle 
.RE
.PP
\fBReturns\fP
.RS 4
0 on success, -1 on error 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for libalpm from the source code\&.