summaryrefslogtreecommitdiff
path: root/lib/rpmfi.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-11-18 17:38:53 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-11-18 17:38:53 +0200
commit219ba347365e226f87d2d489e105a52a798c0284 (patch)
tree9be62aec174dd877c4b11425ffbfef3bdeb82359 /lib/rpmfi.h
parent9444f2d7f5bf0ffcd81fac0e04f0e831ac276306 (diff)
downloadrpm-219ba347365e226f87d2d489e105a52a798c0284.tar.gz
rpm-219ba347365e226f87d2d489e105a52a798c0284.tar.bz2
rpm-219ba347365e226f87d2d489e105a52a798c0284.zip
Add control bits for all (relevant) parts of rpmfi data
- permit fine grained control over what's loaded into fi for what operations, non-trivial memory savings are possible - future possibilities - these reflect closely to rpm verify control bits, all we need is RPMFI_DISK or similar operation to pull the information from disk instead of header and then verify can simply compare two rpmfi's
Diffstat (limited to 'lib/rpmfi.h')
-rw-r--r--lib/rpmfi.h29
1 files changed, 21 insertions, 8 deletions
diff --git a/lib/rpmfi.h b/lib/rpmfi.h
index 7bee44ff4..cc36db7e6 100644
--- a/lib/rpmfi.h
+++ b/lib/rpmfi.h
@@ -381,14 +381,27 @@ rpmfi rpmfiInitD(rpmfi fi, int dx);
rpmfi rpmfiFree(rpmfi fi);
typedef enum rpmfiFlags_e {
- RPMFI_NOHEADER = 0,
- RPMFI_KEEPHEADER = (1 << 0),
- RPMFI_NOFILECLASS = (1 << 1),
- RPMFI_NOFILEDEPS = (1 << 2),
- RPMFI_NOFILELANGS = (1 << 3),
- RPMFI_NOFILEOWNER = (1 << 4),
- RPMFI_ISBUILD = (1 << 30), /* internal */
- RPMFI_ISSOURCE = (1 << 31), /* internal */
+ RPMFI_NOHEADER = 0,
+ RPMFI_KEEPHEADER = (1 << 0),
+ RPMFI_NOFILECLASS = (1 << 1),
+ RPMFI_NOFILEDEPS = (1 << 2),
+ RPMFI_NOFILELANGS = (1 << 3),
+ RPMFI_NOFILEUSER = (1 << 4),
+ RPMFI_NOFILEGROUP = (1 << 5),
+ RPMFI_NOFILEMODES = (1 << 6),
+ RPMFI_NOFILESIZES = (1 << 7),
+ RPMFI_NOFILECAPS = (1 << 8),
+ RPMFI_NOFILELINKTOS = (1 << 9),
+ RPMFI_NOFILEDIGESTS = (1 << 10),
+ RPMFI_NOFILEMTIMES = (1 << 11),
+ RPMFI_NOFILERDEVS = (1 << 12),
+ RPMFI_NOFILEINODES = (1 << 13),
+ RPMFI_NOFILESTATES = (1 << 14),
+ RPMFI_NOFILECOLORS = (1 << 15),
+ RPMFI_NOFILEVERIFYFLAGS = (1 << 16),
+ RPMFI_NOFILEFLAGS = (1 << 17),
+ RPMFI_ISBUILD = (1 << 30), /* internal */
+ RPMFI_ISSOURCE = (1 << 31), /* internal */
} rpmfiFlags;
/** \ingroup rpmfi