2 * Copyright (C) 2008 dhewg, #wiidev efnet
4 * Copyright (C) 2005 Janusz Dziemidowicz (rraptorr@nails.eu.org)
6 * this file is part of wiifuse
7 * http://wiibrew.org/index.php?title=Wiifuse
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
55 struct tree
*tree_add_dir (u32 part
, struct tree
*root
, const char *name
);
56 struct tree
*tree_add_filler (u32 part
, struct tree
*root
, const char *name
);
57 struct tree
*tree_add_raw_file (u32 part
, struct tree
*root
, const char *name
,
58 u64 offset
, u64 size
);
59 struct tree
*tree_add_file (u32 part
, struct tree
*root
, const char *name
,
60 u64 offset
, u64 size
);
61 struct tree
*tree_add_mem (u32 part
, struct tree
*root
, const char *name
,
62 void *ptr
, size_t size
);
63 struct tree
*tree_add_char (u32 part
, struct tree
*root
, const char *name
,
65 struct tree
*tree_add_bool (u32 part
, struct tree
*root
, const char *name
,
67 struct tree
*tree_add_string (u32 part
, struct tree
*root
, const char *name
,
68 const char *str
, size_t size
);
69 struct tree
*tree_add_hex_uint8 (u32 part
, struct tree
*root
, const char *name
,
71 struct tree
*tree_add_hex_uint16 (u32 part
, struct tree
*root
, const char *name
,
73 struct tree
*tree_add_hex_uint32 (u32 part
, struct tree
*root
, const char *name
,
75 struct tree
*tree_add_hex_uint64 (u32 part
, struct tree
*root
, const char *name
,
77 struct tree
*tree_add_uint (u32 part
, struct tree
*root
, const char *name
,
79 struct tree
*tree_add_symlink (u32 part
, struct tree
*root
, const char *name
,
82 struct tree
*tree_find_entry (struct tree
*root
, const char *path
);
83 void tree_free (struct tree
*root
);
84 struct tree
*tree_empty (void);