xref: /haiku/src/bin/bfs_tools/lib/dump.h (revision c237c4ce593ee823d9867fd997e51e4c447f5623)
1 /*
2  * Copyright 2001-2010 pinc Software. All Rights Reserved.
3  * Released under the terms of the MIT license.
4  */
5 #ifndef DUMP_H
6 #define DUMP_H
7 
8 
9 #include "bfs.h"
10 
11 
12 struct bplustree_node;
13 struct bplustree_header;
14 class Inode;
15 
16 
17 extern void dump_block_run(const char* prefix, const block_run& run,
18 	const char *postfix = NULL);
19 extern void dump_super_block(const disk_super_block* superBlock);
20 extern void dump_data_stream(const bfs_inode* inode, const data_stream* stream,
21 	bool showOffsets = false);
22 extern void dump_small_data(Inode* inode);
23 extern void dump_inode(const Inode* node, const bfs_inode* inode,
24 	bool showOffsets = false);
25 extern char* get_tupel(uint32 id);
26 
27 extern void dump_bplustree_header(const bplustree_header* header);
28 extern void dump_bplustree_node(const bplustree_node* node,
29 	const bplustree_header* header, Disk* disk = NULL);
30 
31 extern void dump_block(const char *buffer, uint32 size, int8 valueSize = 0);
32 
33 #endif	/* DUMP_H */
34