diff options
Diffstat (limited to 'lib/rpmdb_internal.h')
-rw-r--r-- | lib/rpmdb_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rpmdb_internal.h b/lib/rpmdb_internal.h index de7c23f31..f4f1a64d3 100644 --- a/lib/rpmdb_internal.h +++ b/lib/rpmdb_internal.h @@ -256,6 +256,7 @@ unsigned char * dbi_lk_conflicts; struct rpmdb_s { char * db_root;/*!< path prefix */ char * db_home;/*!< directory path */ + char * db_fullpath; /*!< full db path including prefix */ int db_flags; int db_mode; /*!< open mode */ int db_perms; /*!< open permissions */ @@ -524,6 +525,14 @@ RPM_GNUC_INTERNAL unsigned int dbiIndexRecordFileNumber(dbiIndexSet set, int recno); /** \ingroup rpmdb + * Return rpmdb home directory (depending on chroot state) + * param db rpmdb handle + * return db home directory (or NULL on error) + */ +RPM_GNUC_INTERNAL +const char *rpmdbHome(rpmdb db); + +/** \ingroup rpmdb * Return database iterator. * @param mi rpm database iterator * @param keyp key data (NULL for sequential access) |