X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=print-tree.h;h=62667d7f619592c52d58d5d26b7f3f7f012194b1;hb=f9c56d3489c60f0bedf5b86ead01bf471e9411d6;hp=e8d0b847c02304d22748a3b47af7dadc18729841;hpb=aa60202f13a7cf7468fb96426735fbbf5b59e675;p=platform%2Fupstream%2Fbtrfs-progs.git diff --git a/print-tree.h b/print-tree.h index e8d0b84..62667d7 100644 --- a/print-tree.h +++ b/print-tree.h @@ -1,3 +1,29 @@ +/* + * Copyright (C) 2007 Oracle. All rights reserved. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public + * License v2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 021110-1307, USA. + */ -void btrfs_print_leaf(struct btrfs_leaf *l); -void btrfs_print_tree(struct btrfs_root *root, struct btrfs_buffer *t); +#ifndef __PRINT_TREE_H__ +#define __PRINT_TREE_H__ + +void btrfs_print_leaf(struct extent_buffer *l); +void btrfs_print_tree(struct extent_buffer *t, int follow); +void btrfs_print_key(struct btrfs_disk_key *disk_key); +void print_chunk_item(struct extent_buffer *eb, struct btrfs_chunk *chunk); +void print_extent_item(struct extent_buffer *eb, int slot, int metadata); +void print_objectid(FILE *stream, u64 objectid, u8 type); +void print_key_type(FILE *stream, u64 objectid, u8 type); +#endif