]> code.delx.au - refind/blob - refind/icns.h
Fixed uninitialized-pointer bug that manifested as a crash with
[refind] / refind / icns.h
1 /*
2 * refit/icns.h
3 * Icon management header file
4 *
5 * Copyright (c) 2006-2009 Christoph Pfisterer
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
10 * met:
11 *
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 *
15 * * Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the
18 * distribution.
19 *
20 * * Neither the name of Christoph Pfisterer nor the names of the
21 * contributors may be used to endorse or promote products derived
22 * from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
25 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
26 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
27 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
28 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
29 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
30 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
31 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
34 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 */
36 /*
37 * Modifications copyright (c) 2012-2015 Roderick W. Smith
38 *
39 * Modifications distributed under the terms of the GNU General Public
40 * License (GPL) version 3 (GPLv3), a copy of which must be distributed
41 * with this source code or binaries made from it.
42 *
43 */
44
45 #ifndef __ICNS_H_
46 #define __ICNS_H_
47
48 //
49 // icns loader module
50 //
51
52 EG_IMAGE * LoadOSIcon(IN CHAR16 *OSIconName OPTIONAL, IN CHAR16 *FallbackIconName, BOOLEAN BootLogo);
53
54 EG_IMAGE * DummyImage(IN UINTN PixelSize);
55
56 EG_IMAGE * BuiltinIcon(IN UINTN Id);
57
58 #define BUILTIN_ICON_FUNC_ABOUT (0)
59 #define BUILTIN_ICON_FUNC_RESET (1)
60 #define BUILTIN_ICON_FUNC_SHUTDOWN (2)
61 #define BUILTIN_ICON_FUNC_EXIT (3)
62 #define BUILTIN_ICON_FUNC_FIRMWARE (4)
63 #define BUILTIN_ICON_FUNC_CSR_ROTATE (5)
64 #define BUILTIN_ICON_TOOL_SHELL (6)
65 #define BUILTIN_ICON_TOOL_PART (7)
66 #define BUILTIN_ICON_TOOL_RESCUE (8)
67 #define BUILTIN_ICON_TOOL_APPLE_RESCUE (9)
68 #define BUILTIN_ICON_TOOL_WINDOWS_RESCUE (10)
69 #define BUILTIN_ICON_TOOL_MOK_TOOL (11)
70 #define BUILTIN_ICON_TOOL_FWUPDATE (12)
71 #define BUILTIN_ICON_TOOL_MEMTEST (13)
72 #define BUILTIN_ICON_TOOL_NETBOOT (14)
73 #define BUILTIN_ICON_VOL_INTERNAL (15)
74 #define BUILTIN_ICON_VOL_EXTERNAL (16)
75 #define BUILTIN_ICON_VOL_OPTICAL (17)
76 #define BUILTIN_ICON_VOL_NET (18)
77 #define BUILTIN_ICON_COUNT (19)
78
79 #endif
80
81 /* EOF */