Updated PCI IDs to latest snapshot.
[tangerine.git] / rom / intuition / lateintuiinit.c
blobd809c557eda0ae7af13c7698deaea3da31a9713f
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
6 Late initialization of intuition.
7 */
9 #include <proto/exec.h>
10 #include <proto/intuition.h>
11 #include <proto/graphics.h>
12 #include <proto/layers.h>
13 #include <proto/alib.h>
15 #include <exec/alerts.h>
16 #include <exec/types.h>
18 #include <aros/config.h>
19 #include <aros/libcall.h>
20 #include "intuition_intern.h"
22 /*****i***********************************************************************
24 NAME */
25 #include <graphics/rastport.h>
26 #include <proto/graphics.h>
28 AROS_LH1(BOOL, LateIntuiInit,
30 /* SYNOPSIS */
31 AROS_LHA(APTR, data, A0),
33 /* LOCATION */
34 struct IntuitionBase *, IntuitionBase, 150, Intuition)
36 /* FUNCTION
37 This function permits late initalization
38 of intuition (After dos and after graphics hidds are setup,
39 but before starup-sequence is run.
40 Can be used to open workbench screen.
42 INPUTS
43 data - unused for now.
45 RESULT
46 success - TRUE if initialization went, FALSE otherwise.
48 NOTES
49 This function is private and AROS specific.
51 EXAMPLE
53 BUGS
55 SEE ALSO
57 INTERNALS
59 *****************************************************************************/
61 AROS_LIBFUNC_INIT
63 /* shut up the compiler */
64 data = data;
66 /* setup pointers */
67 GetPrivIBase(IntuitionBase)->DefaultPointer = MakePointerFromPrefs
69 IntuitionBase, GetPrivIBase(IntuitionBase)->ActivePreferences
71 GetPrivIBase(IntuitionBase)->BusyPointer = MakePointerFromPrefs
73 IntuitionBase, GetPrivIBase(IntuitionBase)->ActivePreferences
78 !GetPrivIBase(IntuitionBase)->DefaultPointer
79 || !GetPrivIBase(IntuitionBase)->BusyPointer
82 return FALSE;
85 return TRUE;
87 AROS_LIBFUNC_EXIT
88 } /* LateIntuiInit() */