aboutsummaryrefslogtreecommitdiff
path: root/meta.go
blob: defa85bc039034d96092194cbf2e70f68a5d9260 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package bolt

type meta struct {
	magic          int32
	version        int32
	mapSize        int
	free           *bucket
	main           *bucket
	lastPageNumber int
	transactionID  int
}

// TODO: #define mm_psize mm_dbs[0].md_pad
// TODO: #define mm_flags mm_dbs[0].md_flags

// TODO:
// typedef union MDB_metabuf {
// 	MDB_page	mb_page;
// 	struct {
// 		char		mm_pad[PAGEHDRSZ];
// 		MDB_meta	mm_meta;
// 	} mb_metabuf;
// } MDB_metabuf;

// TODO:
// typedef struct MDB_dbx {
// 	MDB_val		md_name;		/**< name of the database */
// 	MDB_cmp_func	*md_cmp;	/**< function for comparing keys */
// 	MDB_cmp_func	*md_dcmp;	/**< function for comparing data items */
// 	MDB_rel_func	*md_rel;	/**< user relocate function */
// 	void		*md_relctx;		/**< user-provided context for md_rel */
// } MDB_dbx;