Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / commodities / disposecxmsg.c
blobd7c13e234512a67d1714192bf2620263a9640d28
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME */
13 #include "cxintern.h"
14 #include <proto/exec.h>
16 AROS_LH1(VOID, DisposeCxMsg,
18 /* SYNOPSIS */
20 AROS_LHA(CxMsg *, cxm, A0),
22 /* LOCATION */
24 struct Library *, CxBase, 28, Commodities)
26 /* FUNCTION
28 Delete the commodity message 'cxm'. This function can be used to
29 swallow all InputEvents by disposing every commodity message of type
30 CXM_IEVENT.
32 INPUTS
34 cxm - the commodity message to delete (must NOT be NULL)
36 RESULT
38 NOTES
40 This function can only be used within the context of the input handler,
41 and not from within a commodities' context; that is if you for instance
42 get a CXM_IEVENT CxMsg from a commodity sender object, you must
43 ReplyMsg() it instead of Disposing it.
45 EXAMPLE
47 BUGS
49 SEE ALSO
53 INTERNALS
55 HISTORY
57 ******************************************************************************/
60 AROS_LIBFUNC_INIT
62 Remove((struct Node *)cxm);
63 FreeCxStructure(cxm, CX_MESSAGE, CxBase);
65 AROS_LIBFUNC_EXIT
66 } /* DisposeCxMsg */