Some fixes.
[cake.git] / rom / workbench / handler.h
blob4901c9d01328b29695693bfd24c195b0e6b7e3c5
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;
41 struct TagItem *wbcm_Tags;
44 #define WBCM_SIZE (sizeof(struct WBCommandMessage))
45 #define WBCM(msg) ((struct WBCommandMessage *) (msg))
47 /*** Prototypes *************************************************************/
48 AROS_UFP3
50 LONG, WorkbenchHandler,
51 AROS_UFPA(STRPTR, args, A0),
52 AROS_UFPA(ULONG, argsLength, D0),
53 AROS_UFPA(struct ExecBase *, SysBase, A6)
56 #endif /* __WORKBENCH_HANDLER_H__ */