summaryrefslogtreecommitdiff
path: root/binary.h
blob: e56d2f17b9e38e9e32084f629b998d1d74844c09 (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 binary_magic_number;

extern unsigned int read_binary_ledger(std::istream&	  in,
				       const std::string& leader,
				       ledger_t *         journal,
				       account_t *        master = NULL);

extern void	  write_binary_ledger(std::ostream&	 out,
				      ledger_t *	 ledger,
				      const std::string& leader);

} // namespace ledger

#endif // _BINARY_H