Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / commodities / cxmsgdata.c
blob26535a9ac881721f46cc4fe8025f6d36725fcace
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/commodities.h>
16 AROS_LH1I(APTR, CxMsgData,
18 /* SYNOPSIS */
20 AROS_LHA(CxMsg *, cxm, A0),
22 /* LOCATION */
24 struct Library *, CxBase, 24, Commodities)
26 /* FUNCTION
28 Get the data of a commodities message. Messages can be sent from
29 both sender object and custom object. In the first case the data is
30 no longer valid after you replied to the message.
32 INPUTS
34 cxm - the message the data of which is to be retrieved (may be NULL).
36 RESULT
38 A pointer to the message's data or NULL if message was NULL. The type
39 of the data depends on the type of the message.
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
49 cx_lib/CxSender(), cx_lib/CxCustom()
51 INTERNALS
53 HISTORY
55 ******************************************************************************/
58 AROS_LIBFUNC_INIT
60 return (cxm == NULL) ? NULL : cxm->cxm_Data;
62 AROS_LIBFUNC_EXIT
63 } /* CxMsgData */