2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Makes a class publically available.
8 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <intuition/classes.h>
15 #include <proto/boopsi.h>
17 AROS_LH1(void, AddClass
,
20 AROS_LHA(struct IClass
*, classPtr
, A0
),
23 struct Library
*, BOOPSIBase
, 5, BOOPSI
)
26 Makes a class publically usable. This function must not be called
30 class - The result of MakeClass()
36 Do not use this function for private classes.
41 There is no protection against creating multiple classes with
42 the same name yet. The operation of the system is undefined
46 MakeClass(), FreeClass(), RemoveClass(), "Basic Object-Oriented
47 Programming System for Intuition" and "boopsi Class Reference"
52 29-10-95 digulla automatically created from
53 intuition_lib.fd and clib/intuition_protos.h
55 *****************************************************************************/
59 ObtainSemaphore (&GetBBase(BOOPSIBase
)->bb_ClassListLock
);
60 AddTail ( (struct List
*)&GetBBase(BOOPSIBase
)->bb_ClassList
,
61 (struct Node
*)classPtr
);
62 classPtr
->cl_Flags
|= CLF_INLIST
;
63 ReleaseSemaphore (&GetBBase(BOOPSIBase
)->bb_ClassListLock
);