summaryrefslogtreecommitdiff
path: root/lib/rpmts_internal.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2013-03-11 12:46:30 +0200
committerPanu Matilainen <pmatilai@redhat.com>2013-03-11 12:46:30 +0200
commit159485f4e707ec160d76430d9b315d8055fa8088 (patch)
treeeda53e547dac56c090fb4cd992dd523354f6cb1d /lib/rpmts_internal.h
parent4d0e7f78dcbee5121c2481fd39df30892317f528 (diff)
downloadrpm-159485f4e707ec160d76430d9b315d8055fa8088.tar.gz
Introduce transaction begin/end API on top of rpmlock
- For now this doesn't do anything particularly interesting, it just replaces the transaction lock handle we use internally. We want to export this interface but that needs further changes.
Diffstat (limited to 'lib/rpmts_internal.h')
-rw-r--r--lib/rpmts_internal.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/rpmts_internal.h b/lib/rpmts_internal.h
index d4f25e17e..2e653b104 100644
--- a/lib/rpmts_internal.h
+++ b/lib/rpmts_internal.h
@@ -93,9 +93,6 @@ rpmal rpmtsCreateAl(rpmts ts, rpmElementTypes types);
RPM_GNUC_INTERNAL
int rpmtsSolve(rpmts ts, rpmds key);
-RPM_GNUC_INTERNAL
-rpmlock rpmtsAcquireLock(rpmts ts);
-
/** \ingroup rpmts
* Get the selabel handle from the transaction set
* @param ts transaction set
@@ -118,6 +115,21 @@ rpmRC rpmtsSELabelInit(rpmts ts, int open_status);
*/
void rpmtsSELabelFini(rpmts ts, int close_status);
+/** \ingroup rpmts
+ * Create a transaction (lock) handle
+ * @param ts transaction set
+ * @param flags flags
+ * @return transaction handle
+ */
+rpmtxn rpmtxnBegin(rpmts ts, rpmtxnFlags flags);
+
+/** \ingroup rpmts
+ * Destroy transaction (lock) handle
+ * @param txn transaction handle
+ * @return NULL always
+ */
+rpmtxn rpmtxnEnd(rpmtxn txn);
+
#ifdef __cplusplus
}
#endif