revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / reqtools / general.h
blobd8b45db1cf20746fd9b0b621502ce52340d65ade
1 #ifndef GENERAL_H
2 #define GENERAL_H
4 /* general.h */
6 /* For req.c */
8 #define CHECK_PASSWORD 0
9 #define ENTER_PASSWORD 1
10 #define ENTER_STRING 2
11 #define ENTER_NUMBER 3
12 #define IS_EZREQUEST 4
15 /* compiler/AmigaOS/AROS specific defines */
17 #ifndef __AROS__
18 # define USE_ASM_FUNCS 1
19 # define USE_OPTASM_FUNCS 1
21 # include "compilerspecific.h"
22 #else /* __AROS__ */
23 # include <aros/asmcall.h>
24 # include <dos/dos.h> /* for MININT and MAXINT defines */
26 # define USE_ASM_FUNCS 0
27 # define USE_OPTASM_FUNCS 0
30 #undef REGARGS
31 #define REGARGS
33 #undef STDARGS
34 #define STDARGS
36 #undef ALIGNED
37 #define ALIGNED
39 #undef CHIP
40 #define CHIP
42 #undef ASM
43 #define ASM
45 #undef SAVEDS
46 #define SAVEDS
48 #define REGPARAM(reg,type,name) type name
49 #define OPT_REGPARAM(reg,type,name) type name
50 #define ASM_REGPARAM(reg,type,name) type name
52 #endif /* __AROS__ */
54 struct PWCallBackArgs;
55 #ifndef CLIB_REQTOOLS_PROTOS_H
56 typedef STDARGS char * (*PWCALLBACKFUNPTR) (long, long, struct PWCallBackArgs *);
57 #endif
59 struct BackFillMsg;
60 struct NewGadget;
62 extern void REGARGS InitNewGadget (struct NewGadget *, int, int,
63 int, int, char *, UWORD);
64 extern int REGARGS GetVpCM (struct ViewPort *, APTR *);
65 extern void REGARGS RefreshVpCM (struct ViewPort *, APTR);
66 extern void REGARGS LoadCMap (struct ViewPort *, APTR);
67 extern void REGARGS FreeVpCM (struct ViewPort *, APTR, BOOL);
69 extern struct TextFont * REGARGS GetReqFont (struct TextAttr *,
70 struct TextFont *, int *, int *, int);
71 extern struct Screen *REGARGS LockPubScreenByAddr (struct Screen *);
72 extern struct Screen *REGARGS GetReqScreen (struct NewWindow *,
73 struct Window **, struct Screen *, char *);
74 extern void REGARGS DoWaitPointer (struct Window *, int, int);
75 extern APTR REGARGS DoLockWindow (struct Window *, int, APTR, int);
76 extern void REGARGS DoScreenToFront (struct Screen *, int, int);
77 extern struct IntuiMessage *REGARGS GetWin_GT_Msg (struct Window *,
78 struct Hook *, APTR);
79 extern struct IntuiMessage *REGARGS ProcessWin_Msg (struct Window *,
80 struct IntuiMessage *, struct Hook *, APTR);
81 extern void REGARGS Reply_GT_Msg (struct IntuiMessage *);
82 extern void REGARGS DoCloseWindow (struct Window *, int);
83 extern void REGARGS mySetWriteMask (struct RastPort *, ULONG);
85 #ifdef __AROS__
86 AROS_UFP3(void, WinBackFill,
87 AROS_UFPA(struct Hook *, hook, A0),
88 AROS_UFPA(struct RastPort *, the_rp, A2),
89 AROS_UFPA(struct BackFillMsg *, msg, A1));
90 #else
91 void SAVEDS ASM WinBackFill (REGPARAM(a0, struct Hook *,),
92 REGPARAM(a2, struct RastPort *,), REGPARAM(a1, struct BackFillMsg *,));
93 #endif
95 struct Window *REGARGS OpenWindowBF (struct NewWindow *,
96 struct Hook *, UWORD *, ULONG *, WORD *, BOOL);
97 int CheckReqPos (int, int, struct NewWindow *);
98 int REGARGS StrWidth_noloc (struct IntuiText *, UBYTE *);
99 int CheckBoxWidth (struct NewGadget *);
100 int CheckBoxHeight (struct NewGadget *);
101 LONG BottomBorderHeight (struct Screen *);
103 #define REQPOS_DEFAULT (ULONG)0xFFFF
105 #endif /* GENERAL_H */