summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-13 05:24:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-13 05:24:28 -0400
commit70344b82e70f454462f31daec05d79554804e8f8 (patch)
treed9f3252972cd3b83453ea0d5dfee932f99c4a793 /src/session.h
parent037dd0f716e82568b005a78ee4d79fce0b886af3 (diff)
downloadfork-ledger-70344b82e70f454462f31daec05d79554804e8f8.tar.gz
fork-ledger-70344b82e70f454462f31daec05d79554804e8f8.tar.bz2
fork-ledger-70344b82e70f454462f31daec05d79554804e8f8.zip
Added a "reload" command, for use at the REPL
Created a new function, session_t::reread_journal_files, which throws away all previous state data and reads in the same files again. This is needed to allow Emacs to communicate with Ledger via the REPL, so that it tell Ledger when it has made changes to the user's data file.
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/session.h b/src/session.h
index 6ee7af9d..f4937f10 100644
--- a/src/session.h
+++ b/src/session.h
@@ -87,6 +87,9 @@ public:
std::size_t read_data(const string& master_account = "");
+ void read_journal_files();
+ void reread_journal_files();
+
void clean_xacts();
void clean_xacts(entry_t& entry);
void clean_accounts();