added concrete implementations of putc(), getc(), getchar() and gets()
[tangerine.git] / rom / workbench / handler.h
blob428bd10a680d3e08c06f0577896dfb00a696fdd6
1 #ifndef __WORKBENCH_HANDLER_H__
2 #define __WORKBENCH_HANDLER_H__
4 /*
5 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 $Id$
8 Headers for the Workbench Handler.
9 */
11 #include <aros/asmcall.h>
12 #include <exec/types.h>
13 #include <exec/ports.h>
15 #include <workbench/handler.h>
17 /*** Messages ***************************************************************/
18 enum WBCM_Type
20 WBCM_TYPE_LAUNCH, /* Launch a program */
21 WBCM_TYPE_RELAY /* Relay a message to the workbench application */
24 struct WBCommandMessage
26 struct Message wbcm_Message;
27 enum WBCM_Type wbcm_Type;
29 union
31 struct
33 struct WBStartup *Startup;
34 } Launch;
36 struct
38 struct WBHandlerMessage *Message;
39 } Relay;
40 } wbcm_Data;
43 #define WBCM_SIZE (sizeof(struct WBCommandMessage))
44 #define WBCM(msg) ((struct WBCommandMessage *) (msg))
46 /*** Prototypes *************************************************************/
47 AROS_UFP3
49 LONG, WorkbenchHandler,
50 AROS_UFPA(STRPTR, args, A0),
51 AROS_UFPA(ULONG, argsLength, D0),
52 AROS_UFPA(struct ExecBase *, SysBase, A6)
55 #endif /* __WORKBENCH_HANDLER_H__ */