]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/kext-basic/mykextinfo.c
ld64-409.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / kext-basic / mykextinfo.c
CommitLineData
55e3d2f6
A
1#include <mach/mach_types.h>
2
3extern kern_return_t _start(kmod_info_t *ki, void *data);
4extern 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
8KMOD_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