Fixed a few warnings.
[tangerine.git] / arch / all-unix / bootloader / getbootinfo.c
blob1576c88acde942bc74be6a8c1b222bcf04f47567
1 /*
2 Copyright © 1995-2009, The AROS Development Team. All rights reserved.
3 $Id$
5 GetBootInfo() function.
6 */
7 #define DEBUG 0
9 #include "bootloader_intern.h"
10 #include <proto/bootloader.h>
11 #include <proto/utility.h>
12 #include <aros/debug.h>
13 #include <aros/bootloader.h>
15 /*****************************************************************************
17 NAME */
18 AROS_LH1(APTR, GetBootInfo,
20 /* SYNOPSIS */
21 AROS_LHA(ULONG, infoType, D0),
23 /* LOCATION */
24 struct BootLoaderBase *, BootLoaderBase, 1, Bootloader)
26 /* FUNCTION
27 Return information from the bootloader
29 INPUTS
30 infoType - The type of information requestes
32 RESULT
33 Pointer to resource or NULL if failed
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
43 INTERNALS
45 *****************************************************************************/
47 AROS_LIBFUNC_INIT
49 switch (infoType)
51 case BL_LoaderName:
52 return BootLoaderBase->LdrName;
53 case BL_Args:
54 D(bug("[BootLdr] BL_ARGS requested\n"));
55 if (BootLoaderBase->Flags & BL_FLAGS_CMDLINE)
56 return (APTR)&(BootLoaderBase->Args);
57 break;
58 default:
59 D(bug("[BootLdr] GetBootInfo: Unknown info requested\n"));
62 return NULL;
64 AROS_LIBFUNC_EXIT
65 } /* GetBootInfo */