added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / workbench / libs / muimaster / muimaster_init-aros.c
blob7069424bd48767e548f1b1dbd99cd430b8c0fae6
1 /*
2 Copyright © 2002-2006, The AROS Development Team.
3 All rights reserved.
5 $Id$
6 */
8 #include <proto/exec.h>
9 #include <proto/graphics.h>
11 #include <clib/alib_protos.h>
13 #include "muimaster_intern.h"
14 #include "mui.h"
16 #include <aros/symbolsets.h>
18 #include LC_LIBDEFS_FILE
20 struct Library *MUIMasterBase;
22 static struct TextAttr topaz8Attr =
23 { "topaz.font", 8, FS_NORMAL, FPF_ROMFONT, };
25 /****************************************************************************************/
27 static int MUIMasterInit(LIBBASETYPEPTR lh)
29 MUIMasterBase = (struct Library *)lh;
31 InitSemaphore(&MUIMB(lh)->ZuneSemaphore);
33 NewList((struct List *)&MUIMB(lh)->BuiltinClasses);
34 NewList((struct List *)&MUIMB(lh)->Applications);
36 ((struct MUIMasterBase_intern *)MUIMasterBase)->topaz8font = OpenFont(&topaz8Attr);
38 return TRUE;
41 static int MUIMasterExpunge(LIBBASETYPEPTR lh)
43 MUIMasterBase = (struct Library *)lh;
45 CloseFont(((struct MUIMasterBase_intern *)MUIMasterBase)->topaz8font);
47 return TRUE;
50 ADD2INITLIB(MUIMasterInit, 0);
51 ADD2EXPUNGELIB(MUIMasterExpunge, 0);
53 /****************************************************************************************/