diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-21 14:00:46 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-21 14:00:46 +0300 |
commit | d3c75ad8eef518f413fb27184f9d81799a823e9b (patch) | |
tree | 98e736b4f716d15a2445d003484162d30183ba87 /lib/rpmdb_internal.h | |
parent | af136766a85ca003fbe8332e6ec9c63eeb4d8cd7 (diff) | |
download | librpm-tizen-d3c75ad8eef518f413fb27184f9d81799a823e9b.tar.gz librpm-tizen-d3c75ad8eef518f413fb27184f9d81799a823e9b.tar.bz2 librpm-tizen-d3c75ad8eef518f413fb27184f9d81799a823e9b.zip |
Add an internal API for getting rpmdb home wrt chroot state, use it
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) |