Copyright clean-up (part 1):
[AROS.git] / arch / all-unix / bootstrap / hostinterface.c
blob2a424c6d5d112e45ce2b71db5b53b02c4c140d7a
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdarg.h>
7 #include <stdio.h>
9 /* These macros are defined in both UNIX and AROS headers. Get rid of warnings. */
10 #undef __pure
11 #undef __const
12 #undef __pure2
13 #undef __deprecated
15 #include <aros/config.h>
16 #include <aros/kernel.h>
17 #include <exec/lists.h>
18 #include <exec/resident.h>
19 #include <dos/bptr.h>
21 #include "hostinterface.h"
23 #include "hostlib.h"
24 #include "shutdown.h"
26 #if AROS_MODULES_DEBUG
27 /* gdb hooks from which it obtains modules list */
29 /* This is needed in order to bring in definition of struct segment */
30 #include "../../../rom/debug/debug_intern.h"
32 APTR AbsExecBase = NULL;
33 struct segment *seg = NULL;
34 struct Resident *res = NULL;
35 struct MinList *Debug_ModList = NULL;
36 #endif
39 * Some helpful functions that link us to the underlying host OS.
40 * Without them we would not be able to estabilish any interaction with it.
42 static struct HostInterface _HostIFace =
44 AROS_ARCHITECTURE,
45 HOSTINTERFACE_VERSION,
47 Host_HostLib_Open,
48 Host_HostLib_Close,
49 Host_HostLib_GetPointer,
50 KPutC,
51 #if AROS_MODULES_DEBUG
52 &Debug_ModList,
53 #else
54 NULL,
55 #endif
58 void *HostIFace = &_HostIFace;