rpmfi.h
Go to the documentation of this file.
#ifndef H_RPMFI
#define H_RPMFI
#include <rpm/rpmtypes.h>
#include <rpm/rpmfiles.h>
#include <rpm/rpmarchive.h>
#ifdef __cplusplus
extern "C" {
#endif
rpmfi rpmfiLink (rpmfi fi);
rpm_count_t rpmfiFC(rpmfi fi);
int rpmfiFX(rpmfi fi);
int rpmfiSetFX(rpmfi fi, int fx);
rpm_count_t rpmfiDC(rpmfi fi);
int rpmfiDX(rpmfi fi);
int rpmfiSetDX(rpmfi fi, int dx);
const char * rpmfiBN(rpmfi fi);
const char * rpmfiDN(rpmfi fi);
const char * rpmfiFN(rpmfi fi);
int rpmfiFindFN(rpmfi fi, const char * fn);
const char * rpmfiOBN(rpmfi fi);
const char * rpmfiODN(rpmfi fi);
const char * rpmfiOFN(rpmfi fi);
int rpmfiFindOFN(rpmfi fi, const char * fn);
rpmfileAttrs rpmfiFFlags(rpmfi fi);
rpmVerifyAttrs rpmfiVFlags(rpmfi fi);
rpm_mode_t rpmfiFMode(rpmfi fi);
rpmfileState rpmfiFState(rpmfi fi);
int rpmfiDigestAlgo(rpmfi fi);
const unsigned char * rpmfiFDigest(rpmfi fi, int *algo, size_t *diglen);
char * rpmfiFDigestHex(rpmfi fi, int *algo);
const unsigned char * rpmfiFSignature(rpmfi fi, size_t *siglen);
const unsigned char * rpmfiMD5(rpmfi fi) RPM_GNUC_DEPRECATED;
const char * rpmfiFLink(rpmfi fi);
rpm_loff_t rpmfiFSize(rpmfi fi);
rpm_rdev_t rpmfiFRdev(rpmfi fi);
rpm_ino_t rpmfiFInode(rpmfi fi);
rpm_color_t rpmfiColor(rpmfi fi);
rpm_color_t rpmfiFColor(rpmfi fi);
const char * rpmfiFClass(rpmfi fi);
uint32_t rpmfiFDepends(rpmfi fi,
const uint32_t ** fddictp);
uint32_t rpmfiFNlink(rpmfi fi);
uint32_t rpmfiFLinks(rpmfi fi, const int ** files);
rpm_time_t rpmfiFMtime(rpmfi fi);
const char * rpmfiFUser(rpmfi fi);
const char * rpmfiFGroup(rpmfi fi);
const char * rpmfiFCaps(rpmfi fi);
const char * rpmfiFLangs(rpmfi fi);
int rpmfiStat(rpmfi fi, int flags, struct stat *sb);
int rpmfiNext(rpmfi fi);
rpmfi rpmfiInit(rpmfi fi, int fx);
int rpmfiNextD(rpmfi fi);
rpmfi rpmfiInitD(rpmfi fi, int dx);
rpmfi rpmfiFree(rpmfi fi);
rpmfi rpmfiNewPool(rpmstrPool pool, Header h, rpmTagVal tagN, rpmfiFlags flags);
rpmfi rpmfiNew(const rpmts ts, Header h, rpmTagVal tagN, rpmfiFlags flags);
rpmFileTypes rpmfiWhatis(rpm_mode_t mode);
int rpmfiCompare(const rpmfi afi, const rpmfi bfi);
RPM_GNUC_DEPRECATED
rpmFileAction rpmfiDecideFate(const rpmfi ofi, rpmfi nfi, int skipMissing);
RPM_GNUC_DEPRECATED
int rpmfiConfigConflict(const rpmfi fi);
#ifdef __cplusplus
}
#endif
#endif /* H_RPMDS */
rpmfiFClass
const char * rpmfiFClass(rpmfi fi)
Return current file class from file info set iterator.
rpmfiDC
rpm_count_t rpmfiDC(rpmfi fi)
Return directory count from file info set iterator.
rpmVerifyAttrs
rpmFlags rpmVerifyAttrs
Definition: rpmvf.h:39
rpmfiDX
int rpmfiDX(rpmfi fi)
Return current directory index 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.
rpmfiNextD
int rpmfiNextD(rpmfi fi)
Return next directory iterator index.
rpmfiColor
rpm_color_t rpmfiColor(rpmfi fi)
Return union of all file color bits from file info set iterator.
rpm_count_t
uint32_t rpm_count_t
Definition: rpmtypes.h:29
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.
rpmfiFree
rpmfi rpmfiFree(rpmfi fi)
Destroy a file info set iterator.
rpmfiOBN
const char * rpmfiOBN(rpmfi fi)
Return current original base name from file info set iterator.
RPM_GNUC_DEPRECATED
#define RPM_GNUC_DEPRECATED
Definition: rpmutil.h:80
rpmfiFC
rpm_count_t rpmfiFC(rpmfi fi)
Return file count from file info set iterator.
rpmfiVFlags
rpmVerifyAttrs rpmfiVFlags(rpmfi fi)
Return current file verify flags from file info set iterator.
rpmTagVal
rpm_tag_t rpmTagVal
Definition: rpmtypes.h:30
rpmfi
struct rpmfi_s * rpmfi
Definition: rpmtypes.h:66
rpmfiFMtime
rpm_time_t rpmfiFMtime(rpmfi fi)
Return current file modify time from file info set iterator.
rpmFileAction
enum rpmFileAction_e rpmFileAction
File disposition(s) during package install/erase transaction.
rpm_ino_t
uint32_t rpm_ino_t
Definition: rpmtypes.h:56
rpmstrPool
struct rpmstrPool_s * rpmstrPool
Definition: rpmtypes.h:83
rpmfiNewPool
rpmfi rpmfiNewPool(rpmstrPool pool, Header h, rpmTagVal tagN, rpmfiFlags flags)
Create and load a file info set iterator.
rpmfiFInode
rpm_ino_t rpmfiFInode(rpmfi fi)
Return current file inode from file info set iterator.
rpmfiFX
int rpmfiFX(rpmfi fi)
Return current file index from file info set iterator.
rpmfiNew
rpmfi rpmfiNew(const rpmts ts, Header h, rpmTagVal tagN, rpmfiFlags flags)
Create and load a file info set iterator.
rpmfiDigestAlgo
int rpmfiDigestAlgo(rpmfi fi)
Return digest algorithm of a file info set iterator.
rpmfiFN
const char * rpmfiFN(rpmfi fi)
Return current file name from file info set iterator.
rpmfiStat
int rpmfiStat(rpmfi fi, int flags, struct stat *sb)
Map file stat(2) info.
rpmfiFSignature
const unsigned char * rpmfiFSignature(rpmfi fi, size_t *siglen)
Return current file (binary) signature of file info set iterator.
rpmfiFFlags
rpmfileAttrs rpmfiFFlags(rpmfi fi)
Return current file flags from file info set iterator.
rpmfiLink
rpmfi rpmfiLink(rpmfi fi)
Reference a file info set iterator instance.
rpmfiFState
rpmfileState rpmfiFState(rpmfi fi)
Return current file state from file info set iterator.
rpm_loff_t
uint64_t rpm_loff_t
Definition: rpmtypes.h:51
rpmfiSetFX
int rpmfiSetFX(rpmfi fi, int fx)
Set current file index in file info set iterator.
rpmfiODN
const char * rpmfiODN(rpmfi fi)
Return current original directory name from file info set iterator.
rpmfiFlags
rpmFlags rpmfiFlags
Definition: rpmfiles.h:122
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.
rpmfiFNlink
uint32_t rpmfiFNlink(rpmfi fi)
Return (calculated) current file nlink count from file info set iterator.
rpmfileState
enum rpmfileState_e rpmfileState
File States (when installed).
rpmfiInitD
rpmfi rpmfiInitD(rpmfi fi, int dx)
Initialize directory iterator index.
rpmfiSetDX
int rpmfiSetDX(rpmfi fi, int dx)
Set current directory index in file info set iterator.
rpmfiFGroup
const char * rpmfiFGroup(rpmfi fi)
Return current file group from file info set iterator.
rpmfiFRdev
rpm_rdev_t rpmfiFRdev(rpmfi fi)
Return current file rdev from file info set iterator.
rpmfiNext
int rpmfiNext(rpmfi fi)
Return next file iterator index.
rpmfiFLangs
const char * rpmfiFLangs(rpmfi fi)
Return current file language(s) from file info set iterator.
rpmfiWhatis
rpmFileTypes rpmfiWhatis(rpm_mode_t mode)
Return file type from mode_t.
rpmfiConfigConflict
RPM_GNUC_DEPRECATED int rpmfiConfigConflict(const rpmfi fi)
Return whether file is conflicting config.
rpm_rdev_t
uint16_t rpm_rdev_t
Definition: rpmtypes.h:54
mode
static int mode
Definition: rpmdb.c:21
rpmfiFCaps
const char * rpmfiFCaps(rpmfi fi)
Return textual representation of current file capabilities from file info set iterator.
rpmfiCompare
int rpmfiCompare(const rpmfi afi, const rpmfi bfi)
Return file info comparison.
rpmts
struct rpmts_s * rpmts
The main types involved in transaction manipulation.
Definition: rpmtypes.h:63
rpm_color_t
uint32_t rpm_color_t
Definition: rpmtypes.h:38
rpmfiFSize
rpm_loff_t rpmfiFSize(rpmfi fi)
Return current file size from file info set iterator.
rpmfiFDigestHex
char * rpmfiFDigestHex(rpmfi fi, int *algo)
Return current file (hex) digest of file info set iterator.
rpmfileAttrs
rpmFlags rpmfileAttrs
Definition: rpmfiles.h:65
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.
rpmfiFMode
rpm_mode_t rpmfiFMode(rpmfi fi)
Return current file mode from file info set iterator.
rpmfiFLink
const char * rpmfiFLink(rpmfi fi)
Return current file linkto (i.e.
rpmfiInit
rpmfi rpmfiInit(rpmfi fi, int fx)
Initialize file iterator index.
rpm_time_t
uint32_t rpm_time_t
Definition: rpmtypes.h:52
rpmfiMD5
const unsigned char * rpmfiMD5(rpmfi fi) RPM_GNUC_DEPRECATED
Return current file (binary) md5 digest from file info set iterator.
rpmfiBN
const char * rpmfiBN(rpmfi fi)
Return current base name from file info set iterator.
rpmfiDN
const char * rpmfiDN(rpmfi fi)
Return current directory name from file info set iterator.
rpmFileTypes
enum rpmFileTypes_e rpmFileTypes
File types.
rpmfiFLinks
uint32_t rpmfiFLinks(rpmfi fi, const int **files)
Return (calculated) current file nlink count from file info set iterator.
rpmfiDecideFate
RPM_GNUC_DEPRECATED rpmFileAction rpmfiDecideFate(const rpmfi ofi, rpmfi nfi, int skipMissing)
Return file disposition.
rpmfiFUser
const char * rpmfiFUser(rpmfi fi)
Return current file owner from file info set iterator.
rpm_mode_t
uint16_t rpm_mode_t
Definition: rpmtypes.h:53
Header
struct headerToken_s * Header
RPM header and data retrieval types.
Definition: rpmtypes.h:24
rpmfiFDepends
uint32_t rpmfiFDepends(rpmfi fi, const uint32_t **fddictp)
Return current file depends dictionary from file info set iterator.