]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/kext-basic/mykextinfo.c
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / kext-basic / mykextinfo.c
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