diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-22 13:33:53 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-22 13:33:53 +0300 |
commit | 8d70f186814c8dce2362a803d15bf5fc3149888c (patch) | |
tree | 6f37344b109f59b5cb4f933588251016a333f0b5 /lib/rpmts.h | |
parent | b96a582dd46c6fe3e24998ad7e4af1384397dc6c (diff) | |
download | rpm-8d70f186814c8dce2362a803d15bf5fc3149888c.tar.gz rpm-8d70f186814c8dce2362a803d15bf5fc3149888c.tar.bz2 rpm-8d70f186814c8dce2362a803d15bf5fc3149888c.zip |
Add set + get methods from ts dbmode
Diffstat (limited to 'lib/rpmts.h')
-rw-r--r-- | lib/rpmts.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rpmts.h b/lib/rpmts.h index 88ae85918..2874fa601 100644 --- a/lib/rpmts.h +++ b/lib/rpmts.h @@ -400,6 +400,22 @@ int rpmtsOpenDB(rpmts ts, int dbmode); int rpmtsInitDB(rpmts ts, int dbmode); /** \ingroup rpmts + * Return the transaction database mode + * @param ts transaction set + * @return O_RDONLY, O_RDWR or -1 (lazy opens disabled) + */ +int rpmtsGetDBMode(rpmts ts); + +/** \ingroup rpmts + * Set the transaction database mode. Only permitted when when backing + * database hasn't been opened yet (ie rpmtsGetRdb(ts) == NULL) + * @param ts transaction set + * @param dbmode O_RDONLY, O_RDWR or -1 (disable lazy opens) + * @return 0 on success, 1 on error + */ +int rpmtsSetDBMode(rpmts ts, int dbmode); + +/** \ingroup rpmts * Rebuild the database used by the transaction. * @param ts transaction set * @return 0 on success |