From 20daa3c4285c91dfcd35361f6550f80315e008a5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Feb 2013 15:41:56 +0200 Subject: Add support for updating callback registration --- odb/transaction.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'odb/transaction.hxx') diff --git a/odb/transaction.hxx b/odb/transaction.hxx index 1f7b866..e035661 100644 --- a/odb/transaction.hxx +++ b/odb/transaction.hxx @@ -136,6 +136,12 @@ namespace odb void unregister (void* key); + // Update the data and state values for a callback. Note that just + // like unregister(), this is a potentially slow operation. + // + void + update (void* key, unsigned long long data, transaction** state = 0); + public: transaction_impl& implementation (); @@ -149,6 +155,9 @@ namespace odb protected: friend struct rollback_guard; + std::size_t + find (void* key); + void call (unsigned short event); -- cgit v1.1