]> git.saurik.com Git - apple/dyld.git/blob - testing/kernel-cache-tests/kext-vtable-patching-overrides/foo.h
dyld-851.27.tar.gz
[apple/dyld.git] / testing / kernel-cache-tests / kext-vtable-patching-overrides / foo.h
1
2 #include <Kernel/libkern/c++/OSMetaClass.h>
3 #include <Kernel/libkern/c++/OSObject.h>
4
5 class Foo : public OSObject
6 {
7 OSDeclareDefaultStructors( Foo )
8
9 public:
10 virtual int foo();
11 virtual int fooOverride();
12
13 #ifdef FOO_USED
14 OSMetaClassDeclareReservedUsed(Foo, 0);
15 virtual int fooUsed0();
16 #else
17 OSMetaClassDeclareReservedUnused(Foo, 0);
18 #endif
19 OSMetaClassDeclareReservedUnused(Foo, 1);
20 OSMetaClassDeclareReservedUnused(Foo, 2);
21 OSMetaClassDeclareReservedUnused(Foo, 3);
22 };
23
24 class FooSub : public Foo
25 {
26 OSDeclareDefaultStructors( FooSub )
27
28 public:
29 virtual int foo();
30
31 #ifdef FOO_OVERRIDE
32 virtual int fooOverride();
33 #endif
34
35 };