summaryrefslogtreecommitdiff
path: root/lib/rpmts.h
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-11 12:38:04 -0700
committerAnas Nashif <anas.nashif@intel.com>2013-02-02 16:44:15 -0800
commitcd10f180b09bd91d4d720c66a0835b757d7f944f (patch)
treec2134ff9c2ff07e707fb9f972cc315bcaa31577d /lib/rpmts.h
parent76bb342f9ae2c3e5a902fc9f66af03d072d523d7 (diff)
downloadlibrpm-tizen-cd10f180b09bd91d4d720c66a0835b757d7f944f.tar.gz
librpm-tizen-cd10f180b09bd91d4d720c66a0835b757d7f944f.tar.bz2
librpm-tizen-cd10f180b09bd91d4d720c66a0835b757d7f944f.zip
Suspend exclusive database lock when scriptlets get called
Suspend exclusive database lock when scriptlets get called, allowing read access in scriptlets. Only needed for DB_PRIVATE (aka global) locking.
Diffstat (limited to 'lib/rpmts.h')
-rw-r--r--lib/rpmts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rpmts.h b/lib/rpmts.h
index 0b8d970e7..059f46d24 100644
--- a/lib/rpmts.h
+++ b/lib/rpmts.h
@@ -423,6 +423,8 @@ rpmdb rpmtsGetRdb(rpmts ts);
void * rpmtsNotify(rpmts ts, rpmte te,
rpmCallbackType what, rpm_loff_t amount, rpm_loff_t total);
+int rpmtsSuspendResumeDBLock(rpmts ts, int mode);
+
/** \ingroup rpmts
* Return number of (ordered) transaction set elements.
* @param ts transaction set