42-archive/nm-otool/includes/mach_64.h
Jack Halford a565b7738d lol
2017-10-26 19:15:27 +02:00

39 lines
1.6 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* mach_64.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/26 18:39:31 by jhalford #+# #+# */
/* Updated: 2017/10/26 18:43:32 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef MACH_64_H
# define MACH_64_H
typedef struct s_symbol_64 t_symbol_64;
struct s_symbol_64
{
int pos;
t_symtype type;
char *string;
struct nlist_64 *nlist;
struct section_64 *section;
};
int symbol_64_init(t_symbol_64 *symbol,
char *stringtable, struct nlist_64 *array, int i);
int symbol_64_set(t_symbol_64 *symbol, t_machodata *data);
void symbol_64_free(void *data, size_t size);
int symbol_64_sort(t_list **syms, t_flag flag);
int symbol_64_filter(t_list **syms, t_flag flag);
int is_external_64(t_symbol_64 *s);
int is_not_external_64(t_symbol_64 *s);
int symbol_64_format(t_symbol_64 *symbol, t_nmdata *data);
void mach_64_dump(struct mach_header_64 *file,
t_nmdata *data);
#endif