diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-13 05:24:28 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-13 05:24:28 -0400 |
commit | 70344b82e70f454462f31daec05d79554804e8f8 (patch) | |
tree | d9f3252972cd3b83453ea0d5dfee932f99c4a793 /src/session.h | |
parent | 037dd0f716e82568b005a78ee4d79fce0b886af3 (diff) | |
download | fork-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.h | 3 |
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(); |