]>
Commit | Line | Data |
---|---|---|
55e3d2f6 A |
1 | #include <mach/mach_types.h> |
2 | ||
3 | extern kern_return_t _start(kmod_info_t *ki, void *data); | |
4 | extern kern_return_t _stop(kmod_info_t *ki, void *data); | |
5 | __private_extern__ kern_return_t mykext_start(kmod_info_t *ki, void *data); | |
6 | __private_extern__ kern_return_t mykext_stop(kmod_info_t *ki, void *data); | |
7 | ||
8 | KMOD_EXPLICIT_DECL(com.yourcompany.kext.mykext, "1.0.0d1", _start, _stop) | |
9 | __private_extern__ kmod_start_func_t *_realmain = mykext_start; | |
10 | __private_extern__ kmod_stop_func_t *_antimain = mykext_stop; | |
11 | __private_extern__ int _kext_apple_cc = __APPLE_CC__ ; | |
12 |