summaryrefslogtreecommitdiff
path: root/lib/rpmfi_internal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-12-11 08:57:16 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-12-11 08:57:16 +0200
commit9c15574bae8b11a7381c01a1af39e0d59558bad5 (patch)
treedde216849fe29a9914c5d9275d1a0d8e3a1c853f /lib/rpmfi_internal.h
parentac9c8dc48a8f3efb662b7d615c6a0c94fbe42018 (diff)
downloadlibrpm-tizen-9c15574bae8b11a7381c01a1af39e0d59558bad5.tar.gz
librpm-tizen-9c15574bae8b11a7381c01a1af39e0d59558bad5.tar.bz2
librpm-tizen-9c15574bae8b11a7381c01a1af39e0d59558bad5.zip
Add indexed accessors for rpmfi data, internal only for now
- fsm in particular wants random access to rpmfi data and there's little reason to deny it, file info data is not going to move to linked lists or anything like that anytime soon, permitting indexed access allows eliminating direct accesses to rpmfi struct
Diffstat (limited to 'lib/rpmfi_internal.h')
-rw-r--r--lib/rpmfi_internal.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/lib/rpmfi_internal.h b/lib/rpmfi_internal.h
index 62253e419..0da02a082 100644
--- a/lib/rpmfi_internal.h
+++ b/lib/rpmfi_internal.h
@@ -95,6 +95,69 @@ int nrefs; /*!< Reference count. */
};
RPM_GNUC_INTERNAL
+const char * rpmfiBNIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiDNIndex(rpmfi fi, int jx);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiFNIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpmVerifyAttrs rpmfiVFlagsIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpmfileState rpmfiFStateIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiFLinkIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpm_loff_t rpmfiFSizeIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpm_color_t rpmfiFColorIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiFClassIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+uint32_t rpmfiFDependsIndex(rpmfi fi, int ix, const uint32_t ** fddictp);
+
+RPM_GNUC_INTERNAL
+uint32_t rpmfiFNlinkIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiFLangsIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpmfileAttrs rpmfiFFlagsIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpm_mode_t rpmfiFModeIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const unsigned char * rpmfiFDigestIndex(rpmfi fi, int ix, pgpHashAlgo *algo, size_t *len);
+
+RPM_GNUC_INTERNAL
+rpm_rdev_t rpmfiFRdevIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpm_ino_t rpmfiFInodeIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+rpm_time_t rpmfiFMtimeIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiFUserIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiFGroupIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
+const char * rpmfiFCapsIndex(rpmfi fi, int ix);
+
+RPM_GNUC_INTERNAL
void rpmfiSetFReplacedSize(rpmfi fi, rpm_loff_t newsize);
RPM_GNUC_INTERNAL