8dc69f2761efc9b8d52ffc872dc4c07a6673894a
[b43-tools.git] / disassembler / args.h
1 #ifndef B43_DASM_ARGS_H_
2 #define B43_DASM_ARGS_H_
3
4 struct cmdline_args {
5         unsigned int arch;
6         int no_header;
7         int print_addresses;
8 };
9
10 int parse_args(int argc, char **argv);
11
12 int open_input_file(void);
13 void close_input_file(void);
14 int open_output_file(void);
15 void close_output_file(void);
16
17 extern int _debug;
18 extern struct cmdline_args cmdargs;
19
20 #define IS_DEBUG                (_debug > 0)
21 #define IS_VERBOSE_DEBUG        (_debug > 1)
22 #define IS_INSANE_DEBUG         (_debug > 2)
23
24 #endif /* B43_DASM_ARGS_H_ */