Some fixes.
[cake.git] / rom / workbench / handler_support.c
blobd202521d2cb742b4d89448fc7f48014679a914c5
1 /*
2 Copyright © 2003, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "workbench_intern.h"
7 #include "handler.h"
8 #include "handler_support.h"
10 struct WBCommandMessage *__CreateWBCM_WB
12 enum WBCM_Type type, struct WorkbenchBase *WorkbenchBase
15 struct WBCommandMessage *message = (struct WBCommandMessage *) AllocMem
17 WBCM_SIZE, MEMF_PUBLIC | MEMF_CLEAR
20 if (message != NULL)
22 message->wbcm_Message.mn_Length = WBCM_SIZE;
23 message->wbcm_Type = type;
26 return message;
29 VOID __DestroyWBCM_WB
31 struct WBCommandMessage *message, struct WorkbenchBase *WorkbenchBase
34 if (message != NULL)
36 FreeMem(message, WBCM_SIZE);