added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / libs / muimaster / mui_newobject.c
blob109fa47769023d75709d1d16b4c8699b4ec6f62b
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"
13 /* #define MYDEBUG 1 */
14 #include "debug.h"
16 /*****************************************************************************
18 NAME */
19 AROS_LH2(Object *, MUI_NewObjectA,
21 /* SYNOPSIS */
22 AROS_LHA(ClassID, classid, A0),
23 AROS_LHA(struct TagItem *, tags, A1),
25 /* LOCATION */
26 struct Library *, MUIMasterBase, 5, MUIMaster)
28 /* FUNCTION
30 INPUTS
32 RESULT
34 NOTES
36 EXAMPLE
38 BUGS
39 The function itself is a bug ;-) Remove it!
41 SEE ALSO
43 INTERNALS
45 HISTORY
47 *****************************************************************************/
49 AROS_LIBFUNC_INIT
51 Class *cl;
53 cl = MUI_GetClass(classid);
54 if (cl)
56 Object *obj = NewObjectA(cl, NULL, tags);
58 if (obj) return obj;
60 bug("*** Could not create object of %s\n", classid);
61 MUI_FreeClass(cl);
64 bug("*** Couldn't find %s\n", classid);
66 return NULL;
68 AROS_LIBFUNC_EXIT
69 } /* MUIA_NewObjectA */