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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
.TH "Transaction Functions" 3 "16 Oct 2006" "libalpm" \" -*- nroff -*-
.ad l
.nh
.SH NAME
Transaction Functions \- Functions to manipulate libalpm transactions.
.PP
.SS "Functions"
.in +1c
.ti -1c
.RI "void * \fBalpm_trans_getinfo\fP (unsigned char parm)"
.br
.ti -1c
.RI "int \fBalpm_trans_init\fP (unsigned char type, unsigned int flags, alpm_trans_cb_event event, alpm_trans_cb_conv conv, alpm_trans_cb_progress progress)"
.br
.ti -1c
.RI "int \fBalpm_trans_sysupgrade\fP ()"
.br
.ti -1c
.RI "int \fBalpm_trans_addtarget\fP (char *target)"
.br
.ti -1c
.RI "int \fBalpm_trans_prepare\fP (PMList **data)"
.br
.ti -1c
.RI "int \fBalpm_trans_commit\fP (PMList **data)"
.br
.ti -1c
.RI "int \fBalpm_trans_release\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP
Functions to manipulate libalpm transactions.
.PP
.SH "Function Documentation"
.PP
.SS "int alpm_trans_addtarget (char * target)"
.PP
Add a target to the transaction.
.PP
\fBParameters:\fP
.RS 4
\fItarget\fP the name of the target to add
.RE
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly)
.RE
.PP
.SS "int alpm_trans_commit (PMList ** data)"
.PP
Commit a transaction.
.PP
\fBParameters:\fP
.RS 4
\fIdata\fP the address of a PM_LIST where detailed description of an error can be dumped (ie. list of conflicting files)
.RE
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly)
.RE
.PP
.SS "void* alpm_trans_getinfo (unsigned char parm)"
.PP
Get informations about the transaction.
.PP
\fBParameters:\fP
.RS 4
\fIparm\fP name of the info to get
.RE
.PP
\fBReturns:\fP
.RS 4
a char* on success (the value), NULL on error
.RE
.PP
.SS "int alpm_trans_init (unsigned char type, unsigned int flags, alpm_trans_cb_event event, alpm_trans_cb_conv conv, alpm_trans_cb_progress progress)"
.PP
Initialize the transaction.
.PP
\fBParameters:\fP
.RS 4
\fItype\fP type of the transaction
.br
\fIflags\fP flags of the transaction (like nodeps, etc)
.br
\fIevent\fP event callback function pointer
.br
\fIconv\fP question callback function pointer
.br
\fIprogress\fP progress callback function pointer
.RE
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly)
.RE
.PP
.SS "int alpm_trans_prepare (PMList ** data)"
.PP
Prepare a transaction.
.PP
\fBParameters:\fP
.RS 4
\fIdata\fP the address of a PM_LIST where detailed description of an error can be dumped (ie. list of conflicting files)
.RE
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly)
.RE
.PP
.SS "int alpm_trans_release ()"
.PP
Release a transaction.
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly)
.RE
.PP
.SS "int alpm_trans_sysupgrade ()"
.PP
Search for packages to upgrade and add them to the transaction.
.PP
\fBReturns:\fP
.RS 4
0 on success, -1 on error (pm_errno is set accordingly)
.RE
.PP
|