Build contrib binary archive again because it isn't included in FreeBSD
[AROS.git] / rom / oop / removeclass.c
blobcdaf613300756586c6cad8bffa5915fa45b7075a
1 /*
2 Copyright © 1995-2001, 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 static int test; /* cxref bug */
13 /*****************************************************************************
15 NAME */
17 AROS_LH1(void, OOP_RemoveClass,
19 /* SYNOPSIS */
20 AROS_LHA(OOP_Class *, classPtr, A0),
22 /* LOCATION */
23 struct Library *, OOPBase, 11, OOP)
25 /* FUNCTION
26 Remove a class from the list of public classes.
27 The class must have previously added with AddClass().
29 INPUTS
30 classPtr - Pointer to class that should be removed.
32 RESULT
33 None.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 OOP_AddClass()
44 INTERNALS
46 HISTORY
47 29-10-95 digulla automatically created from
48 intuition_lib.fd and clib/intuition_protos.h
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
53 AROS_LIBBASE_EXT_DECL(struct Library *,OopsBase)
55 if (classPtr)
57 ObtainSemaphore( &GetOBase(OOPBase)->ob_ClassListLock );
58 Remove ((struct Node *)classPtr);
59 ReleaseSemaphore( &GetOBase(OOPBase)->ob_ClassListLock );
63 return;
65 AROS_LIBFUNC_EXIT
66 } /* OOP_RemoveClass */