Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / muimaster / mui_deletecustomclass.c
blob53979d88eeb953c8ee67eda10ec149d1b82f006f
1 /*
2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
7 #include <proto/intuition.h>
8 #include <proto/muimaster.h>
10 #include "mui.h"
11 #include "muimaster_intern.h"
12 #include "support.h"
14 /*****************************************************************************
16 NAME */
17 AROS_LH1(BOOL, MUI_DeleteCustomClass,
19 /* SYNOPSIS */
20 AROS_LHA(struct MUI_CustomClass *, mcc, A0),
22 /* LOCATION */
23 struct Library *, MUIMasterBase, 19, MUIMaster)
25 /* FUNCTION
26 Delete private or public custom classes.
28 INPUTS
29 mcc - pointer from MUI_CreateCustomClass()
31 RESULT
32 TRUE : success
33 FALSE : some objects or sub classes were still in use.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 MUI_CreateCustomClass()
44 INTERNALS
46 HISTORY
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 if (mcc)
54 Class *super = mcc->mcc_Super;
56 if (FreeClass(mcc->mcc_Class))
58 mui_free(mcc);
60 MUI_FreeClass(super);
62 return TRUE;
66 return FALSE;
68 AROS_LIBFUNC_EXIT
70 } /* MUIA_DeleteCustomClass */