summaryrefslogtreecommitdiff
path: root/reconcile.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-09 21:06:46 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:56 -0400
commitf2390964cb22494b78674d02fa542a9116d10f0b (patch)
tree8a1d02bc04802e91667b96db4d495d1ff781339d /reconcile.h
parent9d8b36a25889596035032e56b28fb567c18c4109 (diff)
downloadfork-ledger-f2390964cb22494b78674d02fa542a9116d10f0b.tar.gz
fork-ledger-f2390964cb22494b78674d02fa542a9116d10f0b.tar.bz2
fork-ledger-f2390964cb22494b78674d02fa542a9116d10f0b.zip
(search_for_balance): Sped things up by a factor of ten. Still won't
help for uncleared lists >~27 items (2^27), but it helps.
Diffstat (limited to 'reconcile.h')
-rw-r--r--reconcile.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/reconcile.h b/reconcile.h
index c1494be2..95f1a133 100644
--- a/reconcile.h
+++ b/reconcile.h
@@ -2,22 +2,13 @@
#define _RECONCILE_H
#include "journal.h"
-#include "walk.h"
namespace ledger {
-struct reconcile_results_t
-{
- value_t previous_balance;
- value_t pending_balance;
- value_t remaining_balance;
-
- transactions_list pending_xacts;
-};
-
-reconcile_results_t reconcile_account(journal_t& journal,
- account_t& account,
- const value_t& balance);
+void reconcile_transactions(transactions_list& xacts,
+ value_t& balance,
+ const time_t cutoff,
+ const bool all_pending = false);
} // namespace ledger