rpm: rpmfi.h Source File

rpm 4.12.0.1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

rpmfi.h
Go to the documentation of this file.
1 #ifndef H_RPMFI
2 #define H_RPMFI
3
9 #include <rpm/rpmtypes.h>
10 #include <rpm/rpmfiles.h>
11 #include <rpm/rpmarchive.h>
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
22 rpmfi rpmfiLink (rpmfi fi);
23
29 rpm_count_t rpmfiFC(rpmfi fi);
30
36 int rpmfiFX(rpmfi fi);
37
44 int rpmfiSetFX(rpmfi fi, int fx);
45
51 rpm_count_t rpmfiDC(rpmfi fi);
52
58 int rpmfiDX(rpmfi fi);
59
66 int rpmfiSetDX(rpmfi fi, int dx);
67
73 const char * rpmfiBN(rpmfi fi);
74
80 const char * rpmfiDN(rpmfi fi);
81
87 const char * rpmfiFN(rpmfi fi);
88
96 int rpmfiFindFN(rpmfi fi, const char * fn);
97
103 const char * rpmfiOBN(rpmfi fi);
104
110 const char * rpmfiODN(rpmfi fi);
111
117 const char * rpmfiOFN(rpmfi fi);
118
126 int rpmfiFindOFN(rpmfi fi, const char * fn);
127
133 rpmfileAttrs rpmfiFFlags(rpmfi fi);
134
140 rpmVerifyAttrs rpmfiVFlags(rpmfi fi);
141
147 rpm_mode_t rpmfiFMode(rpmfi fi);
148
154 rpmfileState rpmfiFState(rpmfi fi);
155
161 int rpmfiDigestAlgo(rpmfi fi);
162
170 const unsigned char * rpmfiFDigest(rpmfi fi, int *algo, size_t *diglen);
171
181 char * rpmfiFDigestHex(rpmfi fi, int *algo);
182
189 const unsigned char * rpmfiMD5(rpmfi fi) RPM_GNUC_DEPRECATED;
190
196 const char * rpmfiFLink(rpmfi fi);
197
203 rpm_loff_t rpmfiFSize(rpmfi fi);
204
210 rpm_rdev_t rpmfiFRdev(rpmfi fi);
211
217 rpm_ino_t rpmfiFInode(rpmfi fi);
218
224 rpm_color_t rpmfiColor(rpmfi fi);
225
231 rpm_color_t rpmfiFColor(rpmfi fi);
232
238 const char * rpmfiFClass(rpmfi fi);
239
246 uint32_t rpmfiFDepends(rpmfi fi,
247 const uint32_t ** fddictp);
248
254 uint32_t rpmfiFNlink(rpmfi fi);
255
256
264 uint32_t rpmfiFLinks(rpmfi fi, const int ** files);
265
271 rpm_time_t rpmfiFMtime(rpmfi fi);
272
278 const char * rpmfiFUser(rpmfi fi);
279
285 const char * rpmfiFGroup(rpmfi fi);
286
294 const char * rpmfiFCaps(rpmfi fi);
295
301 const char * rpmfiFLangs(rpmfi fi);
302
309 int rpmfiStat(rpmfi fi, int flags, struct stat *sb);
310
316 int rpmfiNext(rpmfi fi);
317
324 rpmfi rpmfiInit(rpmfi fi, int fx);
325
331 int rpmfiNextD(rpmfi fi);
332
339 rpmfi rpmfiInitD(rpmfi fi, int dx);
340
346 rpmfi rpmfiFree(rpmfi fi);
347
356 rpmfi rpmfiNewPool(rpmstrPool pool, Header h, rpmTagVal tagN, rpmfiFlags flags);
357
366 rpmfi rpmfiNew(const rpmts ts, Header h, rpmTagVal tagN, rpmfiFlags flags);
367
373 rpmFileTypes rpmfiWhatis(rpm_mode_t mode);
374
381 int rpmfiCompare(const rpmfi afi, const rpmfi bfi);
382
391 RPM_GNUC_DEPRECATED
392 rpmFileAction rpmfiDecideFate(const rpmfi ofi, rpmfi nfi, int skipMissing);
393
400 RPM_GNUC_DEPRECATED
401 int rpmfiConfigConflict(const rpmfi fi);
402
403 #ifdef __cplusplus
404 }
405 #endif
406
407 #endif /* H_RPMDS */
rpmfiFCaps
const char * rpmfiFCaps(rpmfi fi)
Return textual representation of current file capabilities from file info set iterator.
rpmVerifyAttrs
rpmFlags rpmVerifyAttrs
Definition: rpmvf.h:39
rpmfiFLink
const char * rpmfiFLink(rpmfi fi)
Return current file linkto (i.e.
rpmfiDigestAlgo
int rpmfiDigestAlgo(rpmfi fi)
Return digest algorithm of a file info set iterator.
rpm_rdev_t
uint16_t rpm_rdev_t
Definition: rpmtypes.h:54
rpm_time_t
uint32_t rpm_time_t
Definition: rpmtypes.h:52
rpmfiDC
rpm_count_t rpmfiDC(rpmfi fi)
Return directory count from file info set iterator.
rpmfiFMode
rpm_mode_t rpmfiFMode(rpmfi fi)
Return current file mode from file info set iterator.
rpmfiFX
int rpmfiFX(rpmfi fi)
Return current file index from file info set iterator.
rpmfiCompare
int rpmfiCompare(const rpmfi afi, const rpmfi bfi)
Return file info comparison.
rpmfiFLinks
uint32_t rpmfiFLinks(rpmfi fi, const int **files)
Return (calculated) current file nlink count from file info set iterator.
rpmFileAction
enum rpmFileAction_e rpmFileAction
File disposition(s) during package install/erase transaction.
rpmfiInitD
rpmfi rpmfiInitD(rpmfi fi, int dx)
Initialize directory iterator index.
rpmfiFState
rpmfileState rpmfiFState(rpmfi fi)
Return current file state from file info set iterator.
rpmfiDX
int rpmfiDX(rpmfi fi)
Return current directory index from file info set iterator.
rpmfiWhatis
rpmFileTypes rpmfiWhatis(rpm_mode_t mode)
Return file type from mode_t.
rpmFileTypes
enum rpmFileTypes_e rpmFileTypes
File types.
rpmfiFC
rpm_count_t rpmfiFC(rpmfi fi)
Return file count from file info set iterator.
rpmts
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
Definition: rpmtypes.h:63
rpmfiFColor
rpm_color_t rpmfiFColor(rpmfi fi)
Return current file color bits from file info set iterator.
rpmfiOFN
const char * rpmfiOFN(rpmfi fi)
Return current original file name from file info set iterator.
RPM_GNUC_DEPRECATED
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:80
rpmfiODN
const char * rpmfiODN(rpmfi fi)
Return current original directory name from file info set iterator.
rpmfiInit
rpmfi rpmfiInit(rpmfi fi, int fx)
Initialize file iterator index.
rpmfiStat
int rpmfiStat(rpmfi fi, int flags, struct stat *sb)
Map file stat(2) info.
rpmfiConfigConflict
RPM_GNUC_DEPRECATED int rpmfiConfigConflict(const rpmfi fi)
Return whether file is conflicting config.
rpmfiVFlags
rpmVerifyAttrs rpmfiVFlags(rpmfi fi)
Return current file verify flags from file info set iterator.
rpmfiFRdev
rpm_rdev_t rpmfiFRdev(rpmfi fi)
Return current file rdev from file info set iterator.
rpmfi
struct rpmfi_s * rpmfi
Definition: rpmtypes.h:66
rpmfiColor
rpm_color_t rpmfiColor(rpmfi fi)
Return union of all file color bits from file info set iterator.
rpmstrPool
struct rpmstrPool_s * rpmstrPool
Definition: rpmtypes.h:83
rpmfiFUser
const char * rpmfiFUser(rpmfi fi)
Return current file owner from file info set iterator.
rpmfiFDigestHex
char * rpmfiFDigestHex(rpmfi fi, int *algo)
Return current file (hex) digest of file info set iterator.
rpmfiDecideFate
RPM_GNUC_DEPRECATED rpmFileAction rpmfiDecideFate(const rpmfi ofi, rpmfi nfi, int skipMissing)
Return file disposition.
rpm_color_t
uint32_t rpm_color_t
Definition: rpmtypes.h:38
rpmfiFGroup
const char * rpmfiFGroup(rpmfi fi)
Return current file group from file info set iterator.
rpmfiBN
const char * rpmfiBN(rpmfi fi)
Return current base name from file info set iterator.
rpmfiLink
rpmfi rpmfiLink(rpmfi fi)
Reference a file info set iterator instance.
rpmfiFlags
rpmFlags rpmfiFlags
Definition: rpmfiles.h:121
rpmfiSetDX
int rpmfiSetDX(rpmfi fi, int dx)
Set current directory index in file info set iterator.
Header
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
rpmfiFN
const char * rpmfiFN(rpmfi fi)
Return current file name from file info set iterator.
rpmfiFSize
rpm_loff_t rpmfiFSize(rpmfi fi)
Return current file size from file info set iterator.
rpmfiFDepends
uint32_t rpmfiFDepends(rpmfi fi, const uint32_t **fddictp)
Return current file depends dictionary from file info set iterator.
rpmfiFInode
rpm_ino_t rpmfiFInode(rpmfi fi)
Return current file inode from file info set iterator.
rpmfileState
enum rpmfileState_e rpmfileState
File States (when installed).
rpmfiFree
rpmfi rpmfiFree(rpmfi fi)
Destroy a file info set iterator.
rpmfiNewPool
rpmfi rpmfiNewPool(rpmstrPool pool, Header h, rpmTagVal tagN, rpmfiFlags flags)
Create and load a file info set iterator.
rpmfiSetFX
int rpmfiSetFX(rpmfi fi, int fx)
Set current file index in file info set iterator.
rpmfiNextD
int rpmfiNextD(rpmfi fi)
Return next directory iterator index.
rpm_count_t
uint32_t rpm_count_t
Definition: rpmtypes.h:29
rpmfiNew
rpmfi rpmfiNew(const rpmts ts, Header h, rpmTagVal tagN, rpmfiFlags flags)
Create and load a file info set iterator.
rpmTagVal
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
mode
static int mode
Definition: rpmdb.c:21
rpmfiNext
int rpmfiNext(rpmfi fi)
Return next file iterator index.
rpmfiMD5
const unsigned char * rpmfiMD5(rpmfi fi) RPM_GNUC_DEPRECATED
Return current file (binary) md5 digest from file info set iterator.
rpmfiFClass
const char * rpmfiFClass(rpmfi fi)
Return current file class from file info set iterator.
rpmfiFDigest
const unsigned char * rpmfiFDigest(rpmfi fi, int *algo, size_t *diglen)
Return current file (binary) digest of file info set iterator.
rpmfiDN
const char * rpmfiDN(rpmfi fi)
Return current directory name from file info set iterator.
rpmfiFindFN
int rpmfiFindFN(rpmfi fi, const char *fn)
Return file index of the given file name or -1 if file is not in the rpmfi.
rpmfileAttrs
rpmFlags rpmfileAttrs
Definition: rpmfiles.h:65
rpm_mode_t
uint16_t rpm_mode_t
Definition: rpmtypes.h:53
rpm_ino_t
uint32_t rpm_ino_t
Definition: rpmtypes.h:56
rpmfiFNlink
uint32_t rpmfiFNlink(rpmfi fi)
Return (calculated) current file nlink count from file info set iterator.
rpmfiFFlags
rpmfileAttrs rpmfiFFlags(rpmfi fi)
Return current file flags from file info set iterator.
rpmfiFindOFN
int rpmfiFindOFN(rpmfi fi, const char *fn)
Return file index of the given original file name or -1 if file is not in the rpmfi.
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
rpmfiOBN
const char * rpmfiOBN(rpmfi fi)
Return current original base name from file info set iterator.
rpmfiFLangs
const char * rpmfiFLangs(rpmfi fi)
Return current file language(s) from file info set iterator.
rpmfiFMtime
rpm_time_t rpmfiFMtime(rpmfi fi)
Return current file modify time from file info set iterator.