summaryrefslogtreecommitdiff
path: root/autoxact.h
diff options
context:
space:
mode:
Diffstat (limited to 'autoxact.h')
-rw-r--r--autoxact.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/autoxact.h b/autoxact.h
index d3acd27c..c85890c6 100644
--- a/autoxact.h
+++ b/autoxact.h
@@ -88,9 +88,14 @@ public:
}
};
-extern automated_transactions_t * current_auto_xacts;
-
-bool handle_auto_xacts(entry_t& entry);
+struct autoxact_finalizer_t : public entry_finalizer_t {
+ automated_transactions_t auto_xacts;
+ virtual bool operator()(entry_t& entry) {
+ if (! auto_xacts.automated_transactions.empty())
+ auto_xacts.extend_entry(entry);
+ return true;
+ }
+};
} // namespace ledger