(C) 1998 AROS - The Amiga Research OS


NAME
#include <>
#include <libraries/commodities.h>
#include <proto/exec.h>
#include <proto/commodities.h>
#include <string.h>
#include <aros/debug.h>

CxObj * CreateCxObj (type , arg1 , arg2)

LOCATION
In CxBase at offset 5

SYNOPSIS
ULONG type
IPTR arg1
IPTR arg2

FUNCTION
Creates a commodity object of type 'type'. This function should never be called directly; instead, use the macros defined in <libraries/ commodties.h>. Brokers, however, should be created with the CxBroker() function.

INPUTS
type
the type of the commodity object to be created. Possible types are defined in <libraries/commodities.h>. arg1 - depends on the value of 'type' above. arg2 - depends on the value of 'type' above.

RESULT
The commodity object or NULL if it coundn't be created. Not so severe problems in the creation process are recorded in an internal field retrievable with CxObjError(). These errors are defined in <libraries/ commodities.h>

EXAMPLE

SEE ALSO
CxObjError(), CxBroker(), cx_lib/ CxSender(), cx_lib/ CxSignal(), cx_lib/ CxFilter(), cx_lib/ CxTranslate() cx_lib/ CxCustom(), cx_lib/ CxDebug()

NOTES
This 'CxObj *' that is returned from this function (and from CxBroker()) is the reference to your commodity object. It shall be used whenever dealing with your commodity objects (functions operating on commodity objects and so on).

BUGS

INTERNALS

HISTORY
18.07.1999 SDuvan
Finally -- commodities.library