rpm 4.15.1

rpmfiles.h
Go to the documentation of this file.
1 #ifndef _RPMFILES_H
2 #define _RPMFILES_H
3
8 #include <sys/types.h>
9 #include <sys/stat.h>
10 #include <unistd.h>
11
12 #include <rpm/rpmtypes.h>
13 #include <rpm/rpmpgp.h>
14
22 typedef enum rpmFileTypes_e {
23 PIPE = 1,
24 CDEV = 2,
25 XDIR = 4,
26 BDEV = 6,
27 REG = 8,
28 LINK = 10,
29 SOCK = 12
30 } rpmFileTypes;
31
35 typedef enum rpmfileState_e {
36 RPMFILE_STATE_MISSING = -1, /* used for unavailable data */
37 RPMFILE_STATE_NORMAL = 0,
38 RPMFILE_STATE_REPLACED = 1,
39 RPMFILE_STATE_NOTINSTALLED = 2,
40 RPMFILE_STATE_NETSHARED = 3,
41 RPMFILE_STATE_WRONGCOLOR = 4
42 } rpmfileState;
43
44 #define RPMFILE_IS_INSTALLED(_x) ((_x) == RPMFILE_STATE_NORMAL || (_x) == RPMFILE_STATE_NETSHARED)
45
49 enum rpmfileAttrs_e {
50 RPMFILE_NONE = 0,
51 RPMFILE_CONFIG = (1 << 0),
52 RPMFILE_DOC = (1 << 1),
53 RPMFILE_ICON = (1 << 2),
54 RPMFILE_MISSINGOK = (1 << 3),
55 RPMFILE_NOREPLACE = (1 << 4),
56 RPMFILE_SPECFILE = (1 << 5),
57 RPMFILE_GHOST = (1 << 6),
58 RPMFILE_LICENSE = (1 << 7),
59 RPMFILE_README = (1 << 8),
60 /* bits 9-10 unused */
61 RPMFILE_PUBKEY = (1 << 11),
62 RPMFILE_ARTIFACT = (1 << 12),
63 };
64
65 typedef rpmFlags rpmfileAttrs;
66
67 #define RPMFILE_ALL ~(RPMFILE_NONE)
68
73 enum rpmVerifyAttrs_e {
74 RPMVERIFY_NONE = 0,
75 RPMVERIFY_MD5 = (1 << 0),
76 RPMVERIFY_FILEDIGEST= (1 << 0),
77 RPMVERIFY_FILESIZE = (1 << 1),
78 RPMVERIFY_LINKTO = (1 << 2),
79 RPMVERIFY_USER = (1 << 3),
80 RPMVERIFY_GROUP = (1 << 4),
81 RPMVERIFY_MTIME = (1 << 5),
82 RPMVERIFY_MODE = (1 << 6),
83 RPMVERIFY_RDEV = (1 << 7),
84 RPMVERIFY_CAPS = (1 << 8),
85 /* bits 9-14 unused, reserved for rpmVerifyAttrs */
86 RPMVERIFY_CONTEXTS = (1 << 15),
87 /* bits 16-22 used in rpmVerifyFlags */
88 /* bits 23-27 used in rpmQueryFlags */
89 RPMVERIFY_READLINKFAIL= (1 << 28),
90 RPMVERIFY_READFAIL = (1 << 29),
91 RPMVERIFY_LSTATFAIL = (1 << 30),
92 RPMVERIFY_LGETFILECONFAIL = (1 << 31)
93 };
94
95 typedef rpmFlags rpmVerifyAttrs;
96
97 #define RPMVERIFY_ALL ~(RPMVERIFY_NONE)
98 #define RPMVERIFY_FAILURES \
99 (RPMVERIFY_LSTATFAIL|RPMVERIFY_READFAIL|RPMVERIFY_READLINKFAIL|RPMVERIFY_LGETFILECONFAIL)
100
104 typedef enum rpmFileAction_e {
105 FA_UNKNOWN = 0,
106 FA_CREATE = 1,
107 FA_COPYIN = 2,
108 FA_COPYOUT = 3,
109 FA_BACKUP = 4,
110 FA_SAVE = 5,
111 FA_SKIP = 6,
112 FA_ALTNAME = 7,
113 FA_ERASE = 8,
114 FA_SKIPNSTATE = 9,
115 FA_SKIPNETSHARED = 10,
116 FA_SKIPCOLOR = 11,
117 FA_TOUCH = 12,
118 /* bits 16-31 reserved */
119 } rpmFileAction;
120
121 #define XFA_SKIPPING(_a) \
122 ((_a) == FA_SKIP || (_a) == FA_SKIPNSTATE || (_a) == FA_SKIPNETSHARED || (_a) == FA_SKIPCOLOR)
123
127 struct rpmRelocation_s {
128 char * oldPath;
129 char * newPath;
130 };
131
132 enum rpmfiFlags_e {
133 RPMFI_NOHEADER = 0,
134 RPMFI_KEEPHEADER = (1 << 0),
135 RPMFI_NOFILECLASS = (1 << 1),
136 RPMFI_NOFILEDEPS = (1 << 2),
137 RPMFI_NOFILELANGS = (1 << 3),
138 RPMFI_NOFILEUSER = (1 << 4),
139 RPMFI_NOFILEGROUP = (1 << 5),
140 RPMFI_NOFILEMODES = (1 << 6),
141 RPMFI_NOFILESIZES = (1 << 7),
142 RPMFI_NOFILECAPS = (1 << 8),
143 RPMFI_NOFILELINKTOS = (1 << 9),
144 RPMFI_NOFILEDIGESTS = (1 << 10),
145 RPMFI_NOFILEMTIMES = (1 << 11),
146 RPMFI_NOFILERDEVS = (1 << 12),
147 RPMFI_NOFILEINODES = (1 << 13),
148 RPMFI_NOFILESTATES = (1 << 14),
149 RPMFI_NOFILECOLORS = (1 << 15),
150 RPMFI_NOFILEVERIFYFLAGS = (1 << 16),
151 RPMFI_NOFILEFLAGS = (1 << 17),
152 RPMFI_NOFILESIGNATURES = (1 << 18),
153 };
154
155 typedef rpmFlags rpmfiFlags;
156
157 #define RPMFI_FLAGS_ERASE \
158 (RPMFI_NOFILECLASS | RPMFI_NOFILELANGS | \
159 RPMFI_NOFILEMTIMES | RPMFI_NOFILERDEVS | \
160 RPMFI_NOFILEVERIFYFLAGS)
161
162 #define RPMFI_FLAGS_INSTALL \
163 (RPMFI_NOFILECLASS | RPMFI_NOFILEVERIFYFLAGS)
164
165 #define RPMFI_FLAGS_VERIFY \
166 (RPMFI_NOFILECLASS | RPMFI_NOFILEDEPS | RPMFI_NOFILELANGS | \
167 RPMFI_NOFILECOLORS)
168
169 #define RPMFI_FLAGS_QUERY \
170 (RPMFI_NOFILECLASS | RPMFI_NOFILEDEPS | RPMFI_NOFILELANGS | \
171 RPMFI_NOFILECOLORS | RPMFI_NOFILEVERIFYFLAGS)
172
173 #define RPMFI_FLAGS_FILETRIGGER \
174 (RPMFI_NOFILECLASS | RPMFI_NOFILEDEPS | RPMFI_NOFILELANGS | \
175 RPMFI_NOFILEUSER | RPMFI_NOFILEGROUP | RPMFI_NOFILEMODES | \
176 RPMFI_NOFILESIZES | RPMFI_NOFILECAPS | RPMFI_NOFILELINKTOS | \
177 RPMFI_NOFILEDIGESTS | RPMFI_NOFILEMTIMES | RPMFI_NOFILERDEVS | \
178 RPMFI_NOFILEINODES | RPMFI_NOFILECOLORS | \
179 RPMFI_NOFILEVERIFYFLAGS | RPMFI_NOFILEFLAGS)
180
181 #define RPMFI_FLAGS_ONLY_FILENAMES \
182 (RPMFI_FLAGS_FILETRIGGER | RPMFI_NOFILESTATES)
183
184 typedef enum rpmFileIter_e {
185 RPMFI_ITER_FWD = 0,
186 RPMFI_ITER_BACK = 1,
187 RPMFI_ITER_WRITE_ARCHIVE = 2,
188 RPMFI_ITER_READ_ARCHIVE = 3,
189 RPMFI_ITER_READ_ARCHIVE_CONTENT_FIRST = 4,
190 RPMFI_ITER_READ_ARCHIVE_OMIT_HARDLINKS = 5,
191 RPMFI_ITER_INTERVAL = 6,
192 } rpmFileIter;
193
194 #define RPMFILEITERMAX 6
195
196 #ifdef __cplusplus
197 extern "C" {
198 #endif
199
208 rpmfiles rpmfilesNew(rpmstrPool pool, Header h, rpmTagVal tagN, rpmfiFlags flags);
209
215 rpmfiles rpmfilesLink(rpmfiles fi);
216
222 rpmfiles rpmfilesFree(rpmfiles fi);
223
229 rpm_count_t rpmfilesFC(rpmfiles fi);
230
236 rpm_count_t rpmfilesDC(rpmfiles fi);
237
246 int rpmfilesFindFN(rpmfiles files, const char * fn);
247
256 int rpmfilesFindOFN(rpmfiles files, const char * fn);
257
258 rpmfi rpmfilesIter(rpmfiles files, int itype);
259
265 int rpmfilesDigestAlgo(rpmfiles fi);
266
272 rpm_color_t rpmfilesColor(rpmfiles files);
273
282 int rpmfilesCompare(rpmfiles afi, int aix, rpmfiles bfi, int bix);
283
290 const char * rpmfilesBN(rpmfiles fi, int ix);
291
303 const char * rpmfilesDN(rpmfiles fi, int jx);
304
311 int rpmfilesDI(rpmfiles fi, int ix);
312
319 char * rpmfilesFN(rpmfiles fi, int ix);
320
327 int rpmfilesODI(rpmfiles fi, int ix);
328
335 const char * rpmfilesOBN(rpmfiles fi, int ix);
336
348 const char * rpmfilesODN(rpmfiles fi, int jx);
349
356 char * rpmfilesOFN(rpmfiles fi, int ix);
357
364 rpmVerifyAttrs rpmfilesVFlags(rpmfiles fi, int ix);
365
372 rpmfileState rpmfilesFState(rpmfiles fi, int ix);
373
380 const char * rpmfilesFLink(rpmfiles fi, int ix);
381
388 rpm_loff_t rpmfilesFSize(rpmfiles fi, int ix);
389
396 rpm_color_t rpmfilesFColor(rpmfiles fi, int ix);
397
404 const char * rpmfilesFClass(rpmfiles fi, int ix);
405
413 uint32_t rpmfilesFDepends(rpmfiles fi, int ix, const uint32_t ** fddictp);
414
421 uint32_t rpmfilesFNlink(rpmfiles fi, int ix);
422
431 uint32_t rpmfilesFLinks(rpmfiles fi, int ix, const int ** files);
432
439 const char * rpmfilesFLangs(rpmfiles fi, int ix);
440
447 rpmfileAttrs rpmfilesFFlags(rpmfiles fi, int ix);
448
455 rpm_mode_t rpmfilesFMode(rpmfiles fi, int ix);
456
465 const unsigned char * rpmfilesFDigest(rpmfiles fi, int ix, int *algo, size_t *len);
466
474 const unsigned char * rpmfilesFSignature(rpmfiles fi, int ix, size_t *len);
475
482 rpm_rdev_t rpmfilesFRdev(rpmfiles fi, int ix);
483
490 rpm_ino_t rpmfilesFInode(rpmfiles fi, int ix);
491
498 rpm_time_t rpmfilesFMtime(rpmfiles fi, int ix);
499
506 const char * rpmfilesFUser(rpmfiles fi, int ix);
507
514 const char * rpmfilesFGroup(rpmfiles fi, int ix);
515
524 const char * rpmfilesFCaps(rpmfiles fi, int ix);
525
534 int rpmfilesStat(rpmfiles fi, int ix, int flags, struct stat *sb);
535
543 rpmVerifyAttrs rpmfilesVerify(rpmfiles fi, int ix, rpmVerifyAttrs omitMask);
544
545 #ifdef __cplusplus
546 }
547 #endif
548
549 #endif /* _RPMFILES_H */
RPMVERIFY_MD5
@ RPMVERIFY_MD5
Definition: rpmfiles.h:75
RPMFI_NOFILECLASS
@ RPMFI_NOFILECLASS
Definition: rpmfiles.h:135
rpmFlags
uint32_t rpmFlags
Definition: rpmtypes.h:42
rpmfilesODN
const char * rpmfilesODN(rpmfiles fi, int jx)
rpm_count_t
uint32_t rpm_count_t
Definition: rpmtypes.h:29
rpmfilesLink
rpmfiles rpmfilesLink(rpmfiles fi)
rpmfilesCompare
int rpmfilesCompare(rpmfiles afi, int aix, rpmfiles bfi, int bix)
LINK
@ LINK
Definition: rpmfiles.h:28
rpmfilesStat
int rpmfilesStat(rpmfiles fi, int ix, int flags, struct stat *sb)
RPMFI_NOFILEUSER
@ RPMFI_NOFILEUSER
Definition: rpmfiles.h:138
RPMFILE_CONFIG
@ RPMFILE_CONFIG
Definition: rpmfiles.h:51
rpmfilesFMtime
rpm_time_t rpmfilesFMtime(rpmfiles fi, int ix)
rpmfilesIter
rpmfi rpmfilesIter(rpmfiles files, int itype)
FA_CREATE
@ FA_CREATE
Definition: rpmfiles.h:106
rpmfilesFRdev
rpm_rdev_t rpmfilesFRdev(rpmfiles fi, int ix)
RPMFI_NOFILELINKTOS
@ RPMFI_NOFILELINKTOS
Definition: rpmfiles.h:143
RPMFILE_STATE_NETSHARED
@ RPMFILE_STATE_NETSHARED
Definition: rpmfiles.h:40
rpmfilesFCaps
const char * rpmfilesFCaps(rpmfiles fi, int ix)
RPMFI_ITER_INTERVAL
@ RPMFI_ITER_INTERVAL
Definition: rpmfiles.h:191
RPMFILE_ICON
@ RPMFILE_ICON
Definition: rpmfiles.h:53
PIPE
@ PIPE
Definition: rpmfiles.h:23
RPMFILE_STATE_WRONGCOLOR
@ RPMFILE_STATE_WRONGCOLOR
Definition: rpmfiles.h:41
rpmfiles
struct rpmfiles_s * rpmfiles
Definition: rpmtypes.h:67
RPMFI_NOFILEINODES
@ RPMFI_NOFILEINODES
Definition: rpmfiles.h:147
rpmFileTypes
enum rpmFileTypes_e rpmFileTypes
RPMVERIFY_GROUP
@ RPMVERIFY_GROUP
Definition: rpmfiles.h:80
FA_ALTNAME
@ FA_ALTNAME
Definition: rpmfiles.h:112
RPMFI_NOFILECAPS
@ RPMFI_NOFILECAPS
Definition: rpmfiles.h:142
rpmfilesFInode
rpm_ino_t rpmfilesFInode(rpmfiles fi, int ix)
RPMFILE_SPECFILE
@ RPMFILE_SPECFILE
Definition: rpmfiles.h:56
rpmstrPool
struct rpmstrPool_s * rpmstrPool
Definition: rpmtypes.h:83
RPMVERIFY_LSTATFAIL
@ RPMVERIFY_LSTATFAIL
Definition: rpmfiles.h:91
RPMVERIFY_LINKTO
@ RPMVERIFY_LINKTO
Definition: rpmfiles.h:78
FA_SKIPNETSHARED
@ FA_SKIPNETSHARED
Definition: rpmfiles.h:115
RPMVERIFY_LGETFILECONFAIL
@ RPMVERIFY_LGETFILECONFAIL
Definition: rpmfiles.h:92
rpmFileIter_e
rpmFileIter_e
Definition: rpmfiles.h:184
rpmRelocation_s::newPath
char * newPath
Definition: rpmfiles.h:129
rpm_mode_t
uint16_t rpm_mode_t
Definition: rpmtypes.h:53
rpmfilesFLink
const char * rpmfilesFLink(rpmfiles fi, int ix)
RPMFI_NOFILEGROUP
@ RPMFI_NOFILEGROUP
Definition: rpmfiles.h:139
RPMFI_NOFILEMODES
@ RPMFI_NOFILEMODES
Definition: rpmfiles.h:140
RPMVERIFY_USER
@ RPMVERIFY_USER
Definition: rpmfiles.h:79
rpmfiFlags_e
rpmfiFlags_e
Definition: rpmfiles.h:132
RPMVERIFY_READFAIL
@ RPMVERIFY_READFAIL
Definition: rpmfiles.h:90
rpmfilesFState
rpmfileState rpmfilesFState(rpmfiles fi, int ix)
RPMVERIFY_CONTEXTS
@ RPMVERIFY_CONTEXTS
Definition: rpmfiles.h:86
FA_SKIPNSTATE
@ FA_SKIPNSTATE
Definition: rpmfiles.h:114
rpmfilesDI
int rpmfilesDI(rpmfiles fi, int ix)
rpmFileTypes_e
rpmFileTypes_e
Definition: rpmfiles.h:22
RPMFILE_STATE_NOTINSTALLED
@ RPMFILE_STATE_NOTINSTALLED
Definition: rpmfiles.h:39
rpmfileState
enum rpmfileState_e rpmfileState
File States (when installed).
RPMFI_ITER_READ_ARCHIVE
@ RPMFI_ITER_READ_ARCHIVE
Definition: rpmfiles.h:188
rpmVerifyAttrs
rpmFlags rpmVerifyAttrs
Definition: rpmfiles.h:95
RPMFI_NOFILEVERIFYFLAGS
@ RPMFI_NOFILEVERIFYFLAGS
Definition: rpmfiles.h:150
RPMFILE_LICENSE
@ RPMFILE_LICENSE
Definition: rpmfiles.h:58
rpmfilesFMode
rpm_mode_t rpmfilesFMode(rpmfiles fi, int ix)
RPMFILE_NOREPLACE
@ RPMFILE_NOREPLACE
Definition: rpmfiles.h:55
FA_COPYOUT
@ FA_COPYOUT
Definition: rpmfiles.h:108
RPMFI_NOFILELANGS
@ RPMFI_NOFILELANGS
Definition: rpmfiles.h:137
rpmfilesFLinks
uint32_t rpmfilesFLinks(rpmfiles fi, int ix, const int **files)
RPMFILE_MISSINGOK
@ RPMFILE_MISSINGOK
Definition: rpmfiles.h:54
FA_ERASE
@ FA_ERASE
Definition: rpmfiles.h:113
RPMFI_NOFILESIZES
@ RPMFI_NOFILESIZES
Definition: rpmfiles.h:141
rpmfilesODI
int rpmfilesODI(rpmfiles fi, int ix)
RPMFI_NOFILESTATES
@ RPMFI_NOFILESTATES
Definition: rpmfiles.h:148
FA_TOUCH
@ FA_TOUCH
Definition: rpmfiles.h:117
FA_BACKUP
@ FA_BACKUP
Definition: rpmfiles.h:109
RPMVERIFY_FILESIZE
@ RPMVERIFY_FILESIZE
Definition: rpmfiles.h:77
RPMFILE_README
@ RPMFILE_README
Definition: rpmfiles.h:59
RPMVERIFY_FILEDIGEST
@ RPMVERIFY_FILEDIGEST
Definition: rpmfiles.h:76
rpm_ino_t
uint32_t rpm_ino_t
Definition: rpmtypes.h:56
RPMVERIFY_MTIME
@ RPMVERIFY_MTIME
Definition: rpmfiles.h:81
FA_SKIP
@ FA_SKIP
Definition: rpmfiles.h:111
RPMFI_NOHEADER
@ RPMFI_NOHEADER
Definition: rpmfiles.h:133
RPMFILE_DOC
@ RPMFILE_DOC
Definition: rpmfiles.h:52
REG
@ REG
Definition: rpmfiles.h:27
FA_UNKNOWN
@ FA_UNKNOWN
Definition: rpmfiles.h:105
RPMFI_NOFILEFLAGS
@ RPMFI_NOFILEFLAGS
Definition: rpmfiles.h:151
rpmfiFlags
rpmFlags rpmfiFlags
Definition: rpmfiles.h:155
rpmfilesDigestAlgo
int rpmfilesDigestAlgo(rpmfiles fi)
BDEV
@ BDEV
Definition: rpmfiles.h:26
rpm_time_t
uint32_t rpm_time_t
Definition: rpmtypes.h:52
rpmFileAction
enum rpmFileAction_e rpmFileAction
rpmfilesDN
const char * rpmfilesDN(rpmfiles fi, int jx)
RPMVERIFY_READLINKFAIL
@ RPMVERIFY_READLINKFAIL
Definition: rpmfiles.h:89
rpmfilesFree
rpmfiles rpmfilesFree(rpmfiles fi)
rpmfilesFSignature
const unsigned char * rpmfilesFSignature(rpmfiles fi, int ix, size_t *len)
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
rpmfilesFUser
const char * rpmfilesFUser(rpmfiles fi, int ix)
rpmFileIter
enum rpmFileIter_e rpmFileIter
rpmfilesFN
char * rpmfilesFN(rpmfiles fi, int ix)
rpm_color_t
uint32_t rpm_color_t
Definition: rpmtypes.h:38
RPMFI_ITER_READ_ARCHIVE_CONTENT_FIRST
@ RPMFI_ITER_READ_ARCHIVE_CONTENT_FIRST
Definition: rpmfiles.h:189
RPMFI_NOFILEDEPS
@ RPMFI_NOFILEDEPS
Definition: rpmfiles.h:136
rpmRelocation_s
We pass these around as an array with a sentinel.
Definition: rpmfiles.h:127
RPMFILE_STATE_NORMAL
@ RPMFILE_STATE_NORMAL
Definition: rpmfiles.h:37
rpmVerifyAttrs_e
rpmVerifyAttrs_e
Definition: rpmfiles.h:73
rpmfilesVFlags
rpmVerifyAttrs rpmfilesVFlags(rpmfiles fi, int ix)
RPMFILE_NONE
@ RPMFILE_NONE
Definition: rpmfiles.h:50
rpmfilesFLangs
const char * rpmfilesFLangs(rpmfiles fi, int ix)
rpmfilesFindFN
int rpmfilesFindFN(rpmfiles files, const char *fn)
rpmfi
struct rpmfi_s * rpmfi
Definition: rpmtypes.h:66
RPMFI_ITER_BACK
@ RPMFI_ITER_BACK
Definition: rpmfiles.h:186
RPMVERIFY_NONE
@ RPMVERIFY_NONE
Definition: rpmfiles.h:74
RPMVERIFY_RDEV
@ RPMVERIFY_RDEV
Definition: rpmfiles.h:83
rpmfilesNew
rpmfiles rpmfilesNew(rpmstrPool pool, Header h, rpmTagVal tagN, rpmfiFlags flags)
RPMFILE_STATE_MISSING
@ RPMFILE_STATE_MISSING
Definition: rpmfiles.h:36
rpmfilesVerify
rpmVerifyAttrs rpmfilesVerify(rpmfiles fi, int ix, rpmVerifyAttrs omitMask)
FA_SAVE
@ FA_SAVE
Definition: rpmfiles.h:110
RPMFI_ITER_WRITE_ARCHIVE
@ RPMFI_ITER_WRITE_ARCHIVE
Definition: rpmfiles.h:187
rpmTagVal
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmFileAction_e
rpmFileAction_e
Definition: rpmfiles.h:104
RPMFILE_GHOST
@ RPMFILE_GHOST
Definition: rpmfiles.h:57
rpmfilesBN
const char * rpmfilesBN(rpmfiles fi, int ix)
RPMFI_NOFILESIGNATURES
@ RPMFI_NOFILESIGNATURES
Definition: rpmfiles.h:152
rpmfilesFFlags
rpmfileAttrs rpmfilesFFlags(rpmfiles fi, int ix)
RPMFILE_PUBKEY
@ RPMFILE_PUBKEY
Definition: rpmfiles.h:61
rpmfilesOBN
const char * rpmfilesOBN(rpmfiles fi, int ix)
rpmfilesColor
rpm_color_t rpmfilesColor(rpmfiles files)
RPMFI_NOFILERDEVS
@ RPMFI_NOFILERDEVS
Definition: rpmfiles.h:146
RPMVERIFY_MODE
@ RPMVERIFY_MODE
Definition: rpmfiles.h:82
FA_COPYIN
@ FA_COPYIN
Definition: rpmfiles.h:107
rpmfilesFNlink
uint32_t rpmfilesFNlink(rpmfiles fi, int ix)
rpmfilesFindOFN
int rpmfilesFindOFN(rpmfiles files, const char *fn)
XDIR
@ XDIR
Definition: rpmfiles.h:25
rpmfilesFC
rpm_count_t rpmfilesFC(rpmfiles fi)
RPMFI_NOFILEMTIMES
@ RPMFI_NOFILEMTIMES
Definition: rpmfiles.h:145
RPMFI_ITER_READ_ARCHIVE_OMIT_HARDLINKS
@ RPMFI_ITER_READ_ARCHIVE_OMIT_HARDLINKS
Definition: rpmfiles.h:190
RPMFILE_ARTIFACT
@ RPMFILE_ARTIFACT
Definition: rpmfiles.h:62
rpmfileState_e
rpmfileState_e
File States (when installed).
Definition: rpmfiles.h:35
Header
struct headerToken_s * Header
Definition: rpmtypes.h:24
rpmfilesFDigest
const unsigned char * rpmfilesFDigest(rpmfiles fi, int ix, int *algo, size_t *len)
RPMFI_NOFILEDIGESTS
@ RPMFI_NOFILEDIGESTS
Definition: rpmfiles.h:144
rpmfileAttrs
rpmFlags rpmfileAttrs
Definition: rpmfiles.h:65
RPMFI_NOFILECOLORS
@ RPMFI_NOFILECOLORS
Definition: rpmfiles.h:149
RPMFI_ITER_FWD
@ RPMFI_ITER_FWD
Definition: rpmfiles.h:185
rpmfilesFSize
rpm_loff_t rpmfilesFSize(rpmfiles fi, int ix)
rpmfilesFDepends
uint32_t rpmfilesFDepends(rpmfiles fi, int ix, const uint32_t **fddictp)
rpmfilesFClass
const char * rpmfilesFClass(rpmfiles fi, int ix)
RPMVERIFY_CAPS
@ RPMVERIFY_CAPS
Definition: rpmfiles.h:84
FA_SKIPCOLOR
@ FA_SKIPCOLOR
Definition: rpmfiles.h:116
rpmfilesFColor
rpm_color_t rpmfilesFColor(rpmfiles fi, int ix)
rpmfilesFGroup
const char * rpmfilesFGroup(rpmfiles fi, int ix)
rpmRelocation_s::oldPath
char * oldPath
Definition: rpmfiles.h:128
CDEV
@ CDEV
Definition: rpmfiles.h:24
rpmfileAttrs_e
rpmfileAttrs_e
Exported File Attributes (ie RPMTAG_FILEFLAGS)
Definition: rpmfiles.h:49
RPMFI_KEEPHEADER
@ RPMFI_KEEPHEADER
Definition: rpmfiles.h:134
rpmfilesOFN
char * rpmfilesOFN(rpmfiles fi, int ix)
rpm_rdev_t
uint16_t rpm_rdev_t
Definition: rpmtypes.h:54
rpmfilesDC
rpm_count_t rpmfilesDC(rpmfiles fi)
SOCK
@ SOCK
Definition: rpmfiles.h:29
RPMFILE_STATE_REPLACED
@ RPMFILE_STATE_REPLACED
Definition: rpmfiles.h:38