summaryrefslogtreecommitdiff
path: root/binary.h
blob: 4c7f3a2336a7d1b84199ac27848a80a8c2507162 (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