add tdnestcnt overrides
[AROS.git] / test / oop / protos.h
blob41e9a9c0bb0ffd0e8d9c074c4ed7438e15523c23
1 #ifndef PROTOS_H
2 #define PROTOS_H
4 /*
5 Copyright © 1997-98, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc: Demo of new OOP system
9 Lang: english
12 #include "types.h"
13 #include "oop.h"
15 /* Prototypes */
16 Class *MakeClass(STRPTR classID, STRPTR superID, struct MethodDescr *mDescr, ULONG instDataSize,
17 ULONG numeNewMethods);
18 VOID FreeClass(Class *cl);
19 VOID AddClass(Class *cl);
20 VOID RemoveClass(Class *cl);
21 Object *NewObject(Class *cl, STRPTR classID, Msg msg);
22 VOID DisposeObject(Object *obj);
24 BOOL InitOOP();
25 VOID CleanupOOP();
27 IPTR CoerceMethodA(Class *cl, Object *o, Msg msg);
28 IPTR DoMethodA(Object *o, Msg msg);
29 IPTR DoSuperMethodA(Class *cl, Object *o, Msg msg);
30 BOOL GetMethod(Object *o, ULONG methodID, IPTR (**methodPtrPtr)(), Class **classPtrPtr);
32 #endif /* PROTOS_H */