summaryrefslogtreecommitdiff
path: root/binary.h
blob: 4fe0a5ea217bbe5e6b30d1a2b10923212db6caa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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