Blob


1 #ifndef __DEFS_H
2 #define __DEFS_H
4 int display_fat_header(struct list *lst, char *, int *);
5 int display_mo_header(struct list *lst, char *, int *, int *);
6 void display_load_commands(struct list *lst, char *, int *, int );
7 void print_section(struct section *);
8 void print_load_command(struct load_command *);
9 void print_mo_header(struct mach_header *);
10 void print_fat_header(struct fat_header *);
11 void print_fat_arch(struct fat_arch *);
12 void print_lc_towlevel_hints(struct twolevel_hints_command *two);
13 void display_cmd_name(int);
14 void display_cpu_arch(int);
15 void print_lc_towlevel_hints(struct twolevel_hints_command *two);
16 void print_lc_dysymtab(struct dysymtab_command *dsym);
17 void print_lc_load_dylib(struct dylib_command *dly);
18 void print_lc_segment(struct segment_command *sc);
19 void mprintf(const char *fmt, ...);
20 int get_cpu_information();
21 int get_bo_information();
22 unsigned int swapi(unsigned int);
24 int analyse_fat_header(char *, int *, struct fat_header*);
25 int analyse_fat_arch(char *, int *, struct fat_arch *);
26 int analyse_mo_header(char *, int *, struct mach_header *);
27 void analyse_load_command(char *, int *, struct load_command *);
28 void examine_section(char *, int *, struct section *);
29 int examine_segmet(char *, int *, int , int , int *);
30 void display_buffer(char *, int , int , int );
32 #endif