grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / coolimages / cool_obtainimagea.c
blob54b8cd489ba4b820bd50eb43d430635b1445e82e
1 /*
2 Copyright © 2002-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <proto/exec.h>
8 #include "coolimages_intern.h"
10 /*****************************************************************************
12 NAME */
13 AROS_LH2(const struct CoolImage *, COOL_ObtainImageA,
15 /* SYNOPSIS */
16 AROS_LHA(ULONG, imageid, D0),
17 AROS_LHA(struct TagItem *, tags, A0),
19 /* LOCATION */
20 struct Library *, CoolImagesBase, 5, CoolImages)
22 /* FUNCTION
24 INPUTS
26 RESULT
28 NOTES
30 EXAMPLE
32 BUGS
34 SEE ALSO
36 INTERNALS
38 *****************************************************************************/
40 AROS_LIBFUNC_INIT
42 const struct CoolImage *image = NULL;
44 switch(imageid)
46 case COOL_SAVEIMAGE_ID:
47 image = &cool_saveimage;
48 break;
50 case COOL_LOADIMAGE_ID:
51 image = &cool_loadimage;
52 break;
54 case COOL_USEIMAGE_ID:
55 image = &cool_useimage;
56 break;
58 case COOL_CANCELIMAGE_ID:
59 image = &cool_cancelimage;
60 break;
62 case COOL_DOTIMAGE_ID:
63 image = &cool_dotimage;
64 break;
66 case COOL_DOTIMAGE2_ID:
67 image = &cool_dotimage2;
68 break;
70 case COOL_WARNIMAGE_ID:
71 image = &cool_warnimage;
72 break;
74 case COOL_DISKIMAGE_ID:
75 image = &cool_diskimage;
76 break;
78 case COOL_SWITCHIMAGE_ID:
79 image = &cool_switchimage;
80 break;
82 case COOL_MONITORIMAGE_ID:
83 image = &cool_monitorimage;
84 break;
86 case COOL_MOUSEIMAGE_ID:
87 image = &cool_mouseimage;
88 break;
90 case COOL_INFOIMAGE_ID:
91 image = &cool_infoimage;
92 break;
94 case COOL_ASKIMAGE_ID:
95 image = &cool_askimage;
96 break;
98 case COOL_KEYIMAGE_ID:
99 image = &cool_keyimage;
100 break;
102 case COOL_CLOCKIMAGE_ID:
103 image = &cool_clockimage;
104 break;
106 case COOL_FLAGIMAGE_ID:
107 image = &cool_flagimage;
108 break;
110 case COOL_HEADIMAGE_ID:
111 image = &cool_headimage;
112 break;
114 case COOL_WINDOWIMAGE_ID:
115 image = &cool_windowimage;
116 break;
118 case COOL_KBDIMAGE_ID:
119 image = &cool_kbdimage;
120 break;
122 } /* switch(imageid) */
124 return image;
126 AROS_LIBFUNC_EXIT
128 } /* COOL_ObtainImageA */