2 * Copyright (C) 2008 dhewg, #wiidev efnet
4 * Copyright (C) 2006 Mike Melanson (mike at multimedia.cx)
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
27 u16
get_be16 (const u8
*p
);
28 u32
get_be32 (const u8
*p
);
29 u64
get_be64 (const u8
*p
);
30 void put_be16 (u8
*p
, const u16 value
);
31 void put_be32 (u8
*p
, const u32 value
);
32 void put_be64 (u8
*p
, const u64 value
);
34 extern u8 verbose_level
;
36 #define LOG(level, format, args...) \
37 if (verbose_level >= level) \
38 printf (format "\n", ## args)
40 #define LOG_ERR(format, args...) \
41 fprintf (stderr, "ERROR: " format "\n", ## args)