summaryrefslogtreecommitdiffstats
path: root/upstream/archlinux/man3/libalpm_files.3
blob: 26766ec6bba53ad3e1a589cd4805099f8152c3d7 (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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.TH "libalpm_files" 3 "libalpm" \" -*- nroff -*-
.ad l
.nh
.SH NAME
libalpm_files \- Files
.SH SYNOPSIS
.br
.PP
.SS "Data Structures"

.in +1c
.ti -1c
.RI "struct \fBalpm_file_t\fP"
.br
.RI "File in a package\&. "
.ti -1c
.RI "struct \fBalpm_filelist_t\fP"
.br
.RI "Package filelist container\&. "
.ti -1c
.RI "struct \fBalpm_backup_t\fP"
.br
.RI "Local package or package file backup entry\&. "
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBalpm_file_t\fP * \fBalpm_filelist_contains\fP (const \fBalpm_filelist_t\fP *filelist, const char *path)"
.br
.RI "Determines whether a package filelist contains a given path\&. "
.in -1c
.SH "Detailed Description"
.PP 


Functions for package files 
.SH "Data Structure Documentation"
.PP 
.SH "struct alpm_file_t"
.PP 
File in a package\&. 
.PP
\fBData Fields:\fP
.RS 4
mode_t \fImode\fP The file's permissions\&. 
.br
.PP
char * \fIname\fP Name of the file\&. 
.br
.PP
off_t \fIsize\fP Size of the file\&. 
.br
.PP
.RE
.PP
.SH "struct alpm_filelist_t"
.PP 
Package filelist container\&. 
.PP
\fBData Fields:\fP
.RS 4
size_t \fIcount\fP Amount of files in the array\&. 
.br
.PP
\fBalpm_file_t\fP * \fIfiles\fP An array of files\&. 
.br
.PP
.RE
.PP
.SH "struct alpm_backup_t"
.PP 
Local package or package file backup entry\&. 
.PP
\fBData Fields:\fP
.RS 4
char * \fIhash\fP Hash of the filename (used internally) 
.br
.PP
char * \fIname\fP Name of the file (without \&.pacsave extension) 
.br
.PP
.RE
.PP
.SH "Function Documentation"
.PP 
.SS "\fBalpm_file_t\fP * alpm_filelist_contains (const \fBalpm_filelist_t\fP * filelist, const char * path)"

.PP
Determines whether a package filelist contains a given path\&. The provided path should be relative to the install root with no leading slashes, e\&.g\&. 'etc/localtime'\&. When searching for directories, the path must have a trailing slash\&. 
.PP
\fBParameters\fP
.RS 4
\fIfilelist\fP a pointer to a package filelist 
.br
\fIpath\fP the path to search for in the package 
.RE
.PP
\fBReturns\fP
.RS 4
a pointer to the matching file or NULL if not found 
.RE
.PP

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