Indentation fix, cleanup.
[AROS.git] / rom / oop / removeclass.c
blob084d26d4ba205ef64aa9e0ec00b4f04e4c3e011f
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <proto/exec.h>
9 #include "intern.h"
11 /*****************************************************************************
13 NAME */
15 AROS_LH1(void, OOP_RemoveClass,
17 /* SYNOPSIS */
18 AROS_LHA(OOP_Class *, classPtr, A0),
20 /* LOCATION */
21 struct Library *, OOPBase, 11, OOP)
23 /* FUNCTION
24 Remove a class from the list of public classes.
25 The class must have previously added with AddClass().
27 INPUTS
28 classPtr - Pointer to class that should be removed.
30 RESULT
31 None.
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
40 OOP_AddClass()
42 INTERNALS
44 HISTORY
45 29-10-95 digulla automatically created from
46 intuition_lib.fd and clib/intuition_protos.h
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 if (classPtr)
54 ObtainSemaphore( &GetOBase(OOPBase)->ob_ClassListLock );
55 Remove ((struct Node *)classPtr);
56 ReleaseSemaphore( &GetOBase(OOPBase)->ob_ClassListLock );
60 return;
62 AROS_LIBFUNC_EXIT
63 } /* OOP_RemoveClass */