Tabs to spaces, more consistent formatting.
[AROS.git] / test / oop2 / protos.h
blob5345ec017eec2c5591e29e39935f7ff7891ce615
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, APTR *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 */