35 RPMFILE_STATE_MISSING = -1,
36 RPMFILE_STATE_NORMAL = 0,
37 RPMFILE_STATE_REPLACED = 1,
38 RPMFILE_STATE_NOTINSTALLED = 2,
39 RPMFILE_STATE_NETSHARED = 3,
40 RPMFILE_STATE_WRONGCOLOR = 4
43#define RPMFILE_IS_INSTALLED(_x) ((_x) == RPMFILE_STATE_NORMAL || (_x) == RPMFILE_STATE_NETSHARED)
64typedef rpmFlags rpmfileAttrs;
66#define RPMFILE_ALL ~(RPMFILE_NONE)
94typedef rpmFlags rpmVerifyAttrs;
96#define RPMVERIFY_ALL ~(RPMVERIFY_NONE)
97#define RPMVERIFY_FAILURES \
98 (RPMVERIFY_LSTATFAIL|RPMVERIFY_READFAIL|RPMVERIFY_READLINKFAIL|RPMVERIFY_LGETFILECONFAIL)
120#define XFA_SKIPPING(_a) \
121 ((_a) == FA_SKIP || (_a) == FA_SKIPNSTATE || (_a) == FA_SKIPNETSHARED || (_a) == FA_SKIPCOLOR)
123#define XFA_CREATING(_a) \
124 ((_a) == FA_CREATE || (_a) == FA_BACKUP || (_a) == FA_SAVE || (_a) == FA_ALTNAME)
136 RPMFI_KEEPHEADER = (1 << 0),
137 RPMFI_NOFILECLASS = (1 << 1),
138 RPMFI_NOFILEDEPS = (1 << 2),
139 RPMFI_NOFILELANGS = (1 << 3),
140 RPMFI_NOFILEUSER = (1 << 4),
141 RPMFI_NOFILEGROUP = (1 << 5),
142 RPMFI_NOFILEMODES = (1 << 6),
143 RPMFI_NOFILESIZES = (1 << 7),
144 RPMFI_NOFILECAPS = (1 << 8),
145 RPMFI_NOFILELINKTOS = (1 << 9),
146 RPMFI_NOFILEDIGESTS = (1 << 10),
147 RPMFI_NOFILEMTIMES = (1 << 11),
148 RPMFI_NOFILERDEVS = (1 << 12),
149 RPMFI_NOFILEINODES = (1 << 13),
150 RPMFI_NOFILESTATES = (1 << 14),
151 RPMFI_NOFILECOLORS = (1 << 15),
152 RPMFI_NOFILEVERIFYFLAGS = (1 << 16),
153 RPMFI_NOFILEFLAGS = (1 << 17),
154 RPMFI_NOFILESIGNATURES = (1 << 18),
155 RPMFI_NOVERITYSIGNATURES = (1 << 19),
158typedef rpmFlags rpmfiFlags;
160#define RPMFI_FLAGS_ERASE \
161 (RPMFI_NOFILECLASS | RPMFI_NOFILELANGS | \
162 RPMFI_NOFILEMTIMES | RPMFI_NOFILERDEVS | \
163 RPMFI_NOFILESIGNATURES | RPMFI_NOVERITYSIGNATURES | \
164 RPMFI_NOFILEVERIFYFLAGS)
166#define RPMFI_FLAGS_INSTALL \
167 (RPMFI_NOFILECLASS | RPMFI_NOFILEVERIFYFLAGS)
169#define RPMFI_FLAGS_VERIFY \
170 (RPMFI_NOFILECLASS | RPMFI_NOFILEDEPS | RPMFI_NOFILELANGS | \
173#define RPMFI_FLAGS_QUERY \
174 (RPMFI_NOFILECLASS | RPMFI_NOFILEDEPS | RPMFI_NOFILELANGS | \
175 RPMFI_NOFILECOLORS | RPMFI_NOFILEVERIFYFLAGS)
177#define RPMFI_FLAGS_FILETRIGGER \
178 (RPMFI_NOFILECLASS | RPMFI_NOFILEDEPS | RPMFI_NOFILELANGS | \
179 RPMFI_NOFILEUSER | RPMFI_NOFILEGROUP | RPMFI_NOFILEMODES | \
180 RPMFI_NOFILESIZES | RPMFI_NOFILECAPS | RPMFI_NOFILELINKTOS | \
181 RPMFI_NOFILEDIGESTS | RPMFI_NOFILEMTIMES | RPMFI_NOFILERDEVS | \
182 RPMFI_NOFILEINODES | RPMFI_NOFILECOLORS | \
183 RPMFI_NOFILESIGNATURES | RPMFI_NOVERITYSIGNATURES | \
184 RPMFI_NOFILEVERIFYFLAGS | RPMFI_NOFILEFLAGS)
186#define RPMFI_FLAGS_ONLY_FILENAMES \
187 (RPMFI_FLAGS_FILETRIGGER | RPMFI_NOFILESTATES)
189typedef enum rpmFileIter_e {
192 RPMFI_ITER_WRITE_ARCHIVE = 2,
193 RPMFI_ITER_READ_ARCHIVE = 3,
194 RPMFI_ITER_READ_ARCHIVE_CONTENT_FIRST = 4,
195 RPMFI_ITER_READ_ARCHIVE_OMIT_HARDLINKS = 5,
196 RPMFI_ITER_INTERVAL = 6,
199#define RPMFILEITERMAX 6
263rpmfi rpmfilesIter(rpmfiles files,
int itype);
int rpmfilesStat(rpmfiles fi, int ix, int flags, struct stat *sb)
rpm_count_t rpmfilesDC(rpmfiles fi)
const unsigned char * rpmfilesFSignature(rpmfiles fi, int ix, size_t *len)
rpmVerifyAttrs rpmfilesVFlags(rpmfiles fi, int ix)
const char * rpmfilesFLangs(rpmfiles fi, int ix)
enum rpmFileTypes_e rpmFileTypes
rpm_mode_t rpmfilesFMode(rpmfiles fi, int ix)
const char * rpmfilesFClass(rpmfiles fi, int ix)
rpm_ino_t rpmfilesFInode(rpmfiles fi, int ix)
int rpmfilesFindFN(rpmfiles files, const char *fn)
rpmfiles rpmfilesLink(rpmfiles fi)
rpmfiles rpmfilesNew(rpmstrPool pool, Header h, rpmTagVal tagN, rpmfiFlags flags)
const char * rpmfilesBN(rpmfiles fi, int ix)
const char * rpmfilesFGroup(rpmfiles fi, int ix)
rpmfileState rpmfilesFState(rpmfiles fi, int ix)
const char * rpmfilesOBN(rpmfiles fi, int ix)
const unsigned char * rpmfilesFDigest(rpmfiles fi, int ix, int *algo, size_t *len)
uint32_t rpmfilesFLinks(rpmfiles fi, int ix, const int **files)
rpm_color_t rpmfilesFColor(rpmfiles fi, int ix)
rpmfileAttrs rpmfilesFFlags(rpmfiles fi, int ix)
enum rpmFileAction_e rpmFileAction
rpm_rdev_t rpmfilesFRdev(rpmfiles fi, int ix)
const char * rpmfilesFLink(rpmfiles fi, int ix)
int rpmfilesDI(rpmfiles fi, int ix)
rpmFileAction_e
Definition: rpmfiles.h:103
int rpmfilesCompare(rpmfiles afi, int aix, rpmfiles bfi, int bix)
int rpmfilesDigestAlgo(rpmfiles fi)
rpmVerifyAttrs rpmfilesVerify(rpmfiles fi, int ix, rpmVerifyAttrs omitMask)
rpm_loff_t rpmfilesFSize(rpmfiles fi, int ix)
int rpmfilesFindOFN(rpmfiles files, const char *fn)
char * rpmfilesFN(rpmfiles fi, int ix)
rpmfiles rpmfilesFree(rpmfiles fi)
int rpmfilesODI(rpmfiles fi, int ix)
const unsigned char * rpmfilesVSignature(rpmfiles fi, int ix, size_t *len, uint16_t *algo)
rpmFileTypes_e
Definition: rpmfiles.h:21
const char * rpmfilesDN(rpmfiles fi, int jx)
rpm_count_t rpmfilesFC(rpmfiles fi)
const char * rpmfilesFUser(rpmfiles fi, int ix)
uint32_t rpmfilesFNlink(rpmfiles fi, int ix)
const char * rpmfilesODN(rpmfiles fi, int jx)
uint32_t rpmfilesFDepends(rpmfiles fi, int ix, const uint32_t **fddictp)
char * rpmfilesOFN(rpmfiles fi, int ix)
rpm_time_t rpmfilesFMtime(rpmfiles fi, int ix)
const char * rpmfilesFCaps(rpmfiles fi, int ix)
rpm_color_t rpmfilesColor(rpmfiles files)
@ FA_BACKUP
Definition: rpmfiles.h:108
@ FA_CREATE
Definition: rpmfiles.h:105
@ FA_UNKNOWN
Definition: rpmfiles.h:104
@ FA_COPYIN
Definition: rpmfiles.h:106
@ FA_SKIPNSTATE
Definition: rpmfiles.h:113
@ FA_SAVE
Definition: rpmfiles.h:109
@ FA_COPYOUT
Definition: rpmfiles.h:107
@ FA_SKIP
Definition: rpmfiles.h:110
@ FA_SKIPCOLOR
Definition: rpmfiles.h:115
@ FA_ALTNAME
Definition: rpmfiles.h:111
@ FA_TOUCH
Definition: rpmfiles.h:116
@ FA_ERASE
Definition: rpmfiles.h:112
@ FA_SKIPNETSHARED
Definition: rpmfiles.h:114
@ XDIR
Definition: rpmfiles.h:24
@ CDEV
Definition: rpmfiles.h:23
@ SOCK
Definition: rpmfiles.h:28
@ PIPE
Definition: rpmfiles.h:22
@ REG
Definition: rpmfiles.h:26
@ BDEV
Definition: rpmfiles.h:25
@ LINK
Definition: rpmfiles.h:27
struct headerToken_s * Header
Definition: rpmtypes.h:24
rpmVerifyAttrs_e
Definition: rpmfiles.h:72
@ RPMVERIFY_CAPS
Definition: rpmfiles.h:83
@ RPMVERIFY_MTIME
Definition: rpmfiles.h:80
@ RPMVERIFY_MD5
Definition: rpmfiles.h:74
@ RPMVERIFY_LGETFILECONFAIL
Definition: rpmfiles.h:91
@ RPMVERIFY_CONTEXTS
Definition: rpmfiles.h:85
@ RPMVERIFY_RDEV
Definition: rpmfiles.h:82
@ RPMVERIFY_MODE
Definition: rpmfiles.h:81
@ RPMVERIFY_GROUP
Definition: rpmfiles.h:79
@ RPMVERIFY_USER
Definition: rpmfiles.h:78
@ RPMVERIFY_FILESIZE
Definition: rpmfiles.h:76
@ RPMVERIFY_READFAIL
Definition: rpmfiles.h:89
@ RPMVERIFY_READLINKFAIL
Definition: rpmfiles.h:88
@ RPMVERIFY_LSTATFAIL
Definition: rpmfiles.h:90
@ RPMVERIFY_FILEDIGEST
Definition: rpmfiles.h:75
@ RPMVERIFY_LINKTO
Definition: rpmfiles.h:77
rpmfileAttrs_e
Definition: rpmfiles.h:48
@ RPMFILE_ARTIFACT
Definition: rpmfiles.h:61
@ RPMFILE_MISSINGOK
Definition: rpmfiles.h:53
@ RPMFILE_ICON
Definition: rpmfiles.h:52
@ RPMFILE_DOC
Definition: rpmfiles.h:51
@ RPMFILE_GHOST
Definition: rpmfiles.h:56
@ RPMFILE_SPECFILE
Definition: rpmfiles.h:55
@ RPMFILE_CONFIG
Definition: rpmfiles.h:50
@ RPMFILE_LICENSE
Definition: rpmfiles.h:57
@ RPMFILE_NOREPLACE
Definition: rpmfiles.h:54
@ RPMFILE_PUBKEY
Definition: rpmfiles.h:60
@ RPMFILE_README
Definition: rpmfiles.h:58
enum rpmfileState_e rpmfileState
rpmfileState_e
Definition: rpmfiles.h:34
Definition: rpmfiles.h:129
char * oldPath
Definition: rpmfiles.h:130
char * newPath
Definition: rpmfiles.h:131