diff options
Diffstat (limited to 'binary.h')
-rw-r--r-- | binary.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/binary.h b/binary.h new file mode 100644 index 00000000..4c7f3a23 --- /dev/null +++ b/binary.h @@ -0,0 +1,21 @@ +#ifndef _BINARY_H +#define _BINARY_H + +#include "ledger.h" + +namespace ledger { + +extern unsigned long magic_number; + +extern unsigned int read_binary_ledger(std::istream& in, + const std::string& leader, + ledger_t *& book, + account_t * master = NULL); + +extern void write_binary_ledger(std::ostream& out, + ledger_t * ledger, + const std::string& leader); + +} // namespace ledger + +#endif // _BINARY_H |