/* * Copyright 2005-2006 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 * $Header: /var/cvsroot/gentoo-projects/pax-utils/paxmacho.h,v 1.2 2006/01/05 03:12:07 vapier Exp $ * * Copyright 2005-2006 Ned Ludd - * Copyright 2005-2006 Mike Frysinger - * * Make sure all of the common mach-o stuff is setup as we expect */ #ifndef _PAX_MACHO_H #define _PAX_MACHO_H typedef struct { void *mhdr; char *data; uint32_t macho_class; off_t len; int fd; const char *filename; const char *base_filename; } machoobj; machoobj *readmacho(const char *filename); void unreadmacho(machoobj *macho); const char *get_machomhtype(int mh_type); #endif /* _PAX_MACHO_H */