Hint added.
[AROS.git] / workbench / c / iprefs / global.h
blob9f7597e1ae81610cf1f534b16c90f7cc4c0a4060
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #ifndef GLOBAL_H
10 #define GLOBAL_H
12 /*********************************************************************************************/
14 #ifndef DOS_DOS_H
15 #include <dos/dos.h>
16 #endif
18 #ifndef DOS_NOTIFY_H
19 #include <dos/notify.h>
20 #endif
22 #ifndef EXEC_MEMORY_H
23 #include <exec/memory.h>
24 #endif
26 #ifndef INTUITION_INTUITION_H
27 #include <intuition/intuition.h>
28 #endif
30 #ifndef INTUITION_SCREENS_H
31 #include <intuition/screens.h>
32 #endif
34 #ifndef INTUITION_IMAGECLASS_H
35 #include <intuition/imageclass.h>
36 #endif
38 #ifndef INTUITION_GADGETCLASS_H
39 #include <intuition/gadgetclass.h>
40 #endif
42 #ifndef INTUITION_CLASSUSR_H
43 #include <intuition/classusr.h>
44 #endif
46 #ifndef INTUITION_CLASSES_H
47 #include <intuition/classes.h>
48 #endif
50 #ifndef INTUITION_ICCLASS_H
51 #include <intuition/icclass.h>
52 #endif
54 #ifndef GRAPHICS_GFX_H
55 #include <graphics/gfx.h>
56 #endif
58 #ifndef GRAPHICS_GFXBASE_H
59 #include <graphics/gfxbase.h>
60 #endif
62 #ifndef GRAPHICS_CLIP_H
63 #include <graphics/clip.h>
64 #endif
66 #ifndef GRAPHICS_LAYERS_H
67 #include <graphics/layers.h>
68 #endif
70 #ifndef DEVICES_KEYMAP_H
71 #include <devices/keymap.h>
72 #endif
74 #ifndef DEVICES_INPUTEVENT_H
75 #include <devices/inputevent.h>
76 #endif
78 #ifndef LIBRARIES_GADTOOLS_H
79 #include <libraries/gadtools.h>
80 #endif
82 #ifndef LIBRARIES_ASL_H
83 #include <libraries/asl.h>
84 #endif
86 #ifndef UTILITY_UTILITY_H
87 #include <utility/utility.h>
88 #endif
90 #ifndef UTILITY_TAGITEM_H
91 #include <utility/tagitem.h>
92 #endif
94 #ifndef LIBRARIES_LOCALE_H
95 #include <libraries/locale.h>
96 #endif
98 #ifndef LIBRARIES_IFFPARSE_H
99 #include <libraries/iffparse.h>
100 #endif
102 #ifndef DATATYPES_DATATYPES_H
103 #include <datatypes/datatypes.h>
104 #endif
106 #ifndef DATATYPES_DATATYPESCLASS_H
107 #include <datatypes/datatypesclass.h>
108 #endif
110 /*********************************************************************************************/
112 #ifndef PROTO_EXEC_H
113 #include <proto/exec.h>
114 #endif
116 #ifndef PROTO_DOS_H
117 #include <proto/dos.h>
118 #endif
120 #ifndef PROTO_INTUITION_H
121 #include <proto/intuition.h>
122 #endif
124 #ifndef PROTO_GRAPHICS_H
125 #include <proto/graphics.h>
126 #endif
128 #ifndef PROTO_UTILITY_H
129 #include <proto/utility.h>
130 #endif
132 #ifndef PROTO_KEYMAP_H
133 #include <proto/keymap.h>
134 #endif
136 #ifndef PROTO_LOCALE_H
137 #include <proto/locale.h>
138 #endif
140 #ifndef PROTO_LAYERS_H
141 #include <proto/layers.h>
142 #endif
144 #ifndef PROTO_DATATYPES_H
145 #include <proto/datatypes.h>
146 #endif
148 #ifndef PROTO_ALIB_H
149 #include <proto/alib.h>
150 #endif
152 #ifndef PROTO_ASL_H
153 #include <proto/asl.h>
154 #endif
156 #ifndef PROTO_DISKFONT_H
157 #include <proto/diskfont.h>
158 #endif
160 #ifndef PROTO_IFFPARSE_H
161 #include <proto/iffparse.h>
162 #endif
164 #include <proto/kms.h>
166 /*********************************************************************************************/
168 #ifdef BIGENDIAN_PREFS
169 #define GET_LONG AROS_BE2LONG
170 #define GET_WORD AROS_BE2WORD
171 #else
172 #define GET_LONG(x) x
173 #define GET_WORD(x) x
174 #endif
176 #define IPREFS_SEM_NAME "IPrefs >>"
177 #define DO_LOCALE_PATCHES 0
179 struct IPrefsSem
181 struct SignalSemaphore sem;
182 UBYTE semname[12];
185 /*********************************************************************************************/
187 #include "vars.h"
189 /*********************************************************************************************/
191 /* main.c */
193 void Cleanup(STRPTR msg);
194 WORD ShowMessage(STRPTR title, STRPTR text, STRPTR gadtext);
196 /* patches.c */
198 void InstallPatches(void);
200 /* misc.c */
202 struct IFFHandle *CreateIFF(STRPTR filename, LONG *stopchunks, LONG numstopchunks);
203 void KillIFF(struct IFFHandle *iff);
204 APTR LoadChunk(struct IFFHandle *iff, LONG size, ULONG memtype);
206 /* localeprefs.c */
208 void LocalePrefs_Handler(STRPTR filename);
210 /* screenmodeprefs.c */
212 void ScreenModePrefs_Handler(STRPTR filename);
214 /* serialprefs.c */
216 void SerialPrefs_Handler(STRPTR filename);
218 /* fontprefs.c */
220 void FontPrefs_Handler(STRPTR filename);
222 /* inputprefs.c */
224 void InputPrefs_Handler(STRPTR filename);
226 /* icontrolprefs.c */
228 void IControlPrefs_Handler(STRPTR filename);
230 /* wbpatternprefs.c */
232 void WBPatternPrefs_Handler(STRPTR filename);
233 void RootPatternCleanup (void);
235 /* pointerprefs.c */
237 void PointerPrefs_Handler(STRPTR filename);
239 /* printerprefs.c */
241 void PrinterPrefs_Handler(STRPTR filename);
243 /*********************************************************************************************/
245 #endif /* GLOBAL_H */