summaryrefslogtreecommitdiff
path: root/lib/rpmfi_internal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-03-27 16:15:00 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-03-27 16:15:00 +0200
commit569adfa17c2839280ee43f05c0c5928e50e5ae10 (patch)
treeda82796319973ad7f58ba0d5b507c65c9ee38fde /lib/rpmfi_internal.h
parent74a4f639e2c62109ad8e44fb608382241bdb1faa (diff)
downloadlibrpm-tizen-569adfa17c2839280ee43f05c0c5928e50e5ae10.tar.gz
librpm-tizen-569adfa17c2839280ee43f05c0c5928e50e5ae10.tar.bz2
librpm-tizen-569adfa17c2839280ee43f05c0c5928e50e5ae10.zip
Tidy up rpmfi struct definition a bit
Diffstat (limited to 'lib/rpmfi_internal.h')
-rw-r--r--lib/rpmfi_internal.h24
1 files changed, 6 insertions, 18 deletions
diff --git a/lib/rpmfi_internal.h b/lib/rpmfi_internal.h
index 77cc9d3d7..b6b537ae4 100644
--- a/lib/rpmfi_internal.h
+++ b/lib/rpmfi_internal.h
@@ -13,6 +13,8 @@
typedef uint16_t scidx_t;
typedef struct strcache_s *strcache;
+#define RPMFIMAGIC 0x09697923
+
/**
* A package filename set.
*/
@@ -22,27 +24,19 @@ struct rpmfi_s {
Header h; /*!< Header for file info set (or NULL) */
-/*?null?*/
const char ** bnl; /*!< Base name(s) (from header) */
-/*?null?*/
const char ** dnl; /*!< Directory name(s) (from header) */
strcache flinkcache; /*!< File link cache */
scidx_t * flinks; /*!< Index to file link(s) cache */
scidx_t * flangs; /*!< Index to file lang(s) cache */
- uint32_t * dil; /*!< Directory indice(s) (from header) */
-/*?null?*/
+ uint32_t * dil; /*!< Directory indice(s) (from header) */
const rpm_flag_t * fflags; /*!< File flag(s) (from header) */
-/*?null?*/
const rpm_off_t * fsizes; /*!< File size(s) (from header) */
-/*?null?*/
const rpm_time_t * fmtimes; /*!< File modification time(s) (from header) */
-/*?null?*/
- rpm_mode_t * fmodes; /*!< File mode(s) (from header) */
-/*?null?*/
+ rpm_mode_t * fmodes; /*!< File mode(s) (from header) */
const rpm_rdev_t * frdevs; /*!< File rdev(s) (from header) */
-/*?null?*/
const rpm_ino_t * finodes; /*!< File inodes(s) (from header) */
scidx_t *fuser; /*!< Index to file owner(s) cache */
@@ -62,17 +56,14 @@ struct rpmfi_s {
rpm_count_t nddict; /*!< No. of depends entries. */
const uint32_t * fddictx; /*!< File depends dictionary start (header) */
const uint32_t * fddictn; /*!< File depends dictionary count (header) */
-
-/*?null?*/
const rpm_flag_t * vflags; /*!< File verify flag(s) (from header) */
rpm_count_t dc; /*!< No. of directories. */
rpm_count_t fc; /*!< No. of files. */
-/*=============================*/
rpmfiFlags fiflags; /*!< file info set control flags */
headerGetFlags scareFlags; /*!< headerGet flags wrt scareMem */
-/*-----------------------------*/
+
struct fingerPrint_s * fps; /*!< File fingerprint(s). */
pgpHashAlgo digestalgo; /*!< File digest algorithm */
@@ -86,10 +77,7 @@ struct rpmfi_s {
FSM_t fsm; /*!< File state machine data. */
rpm_off_t * replacedSizes; /*!< (TR_ADDED) */
int magic;
-#define RPMFIMAGIC 0x09697923
-/*=============================*/
-
-int nrefs; /*!< Reference count. */
+ int nrefs; /*!< Reference count. */
};
RPM_GNUC_INTERNAL