Chameleon

Chameleon Svn Source Tree

Root/branches/meklort/i386/boot2/modules.h

Source at commit 334 created 13 years 9 months ago.
By meklort, Missing 'l'
1/*
2 * Module Loading functionality
3 * Copyright 2009 Evan Lojewski. All rights reserved.
4 *
5 */
6
7#include <mach-o/loader.h>
8#include <mach-o/nlist.h>
9
10
11#ifndef __BOOT_MODULES_H
12#define __BOOT_MODULES_H
13
14#define SYMBOLS_MODULE "Symbols"
15#define SYMBOL_DYLD_STUB_BINDER"dyld_stub_binder"
16#define STUB_ENTRY_SIZE6
17
18#define SUCCESS1
19#defineERROR0
20
21
22
23int jump_pointer(int (*pointer)());
24
25int load_module(const char* module);
26void module_loaded(const char* name, UInt32 version, UInt32 compat);
27void add_symbol(const char* symbol, void* addr);
28void* parse_mach(void* binary);
29
30#endif /* __BOOT_MODULES_H */

Archive Download this file

Revision: 334