(C) 1998 AROS - The Amiga Research OS


NAME
#include <aros/debug.h>
#include <>
#include <devices/input.h>
#include <proto/commodities.h>
#include <proto/exec.h>
#include <devices/inputevent.h>
#include <libraries/commodities.h>
#include <exec/lists.h>

CxObj * CxBroker (nb , error)

LOCATION
In CxBase at offset 6

SYNOPSIS
struct NewBroker * nb
LONG * error

FUNCTION
Create a commodity broker from the specifications found in the structure pointed to by 'nb'. The NewBroker structure is described in <Libraries/ Commodities.h>, see this file for more info. After the call, the NewBroker structure isn't needed anymore and may be discarded.

INPUTS
nb
- pointer to an initialized NewBroker structure
error
- pointer to a LONG where the possible error of the CxBroker function is stored (may be NULL)

RESULT
A pointer to a commodity broker, or NULL upon failure. If 'error' is NULL, no error information is stored. The possible error types are

CBERR_OK -- everything went just fine

CBERR_SYSERR -- system problems, typically not enough memory

CBERR_DUP -- another broker with the same name already exists (and your nb_Unique indicates that only one is allowed)

CBERR_VERSION -- the version found in nb_Version is unknown to the library

EXAMPLE

SEE ALSO
SetCxObjPri(), <libraries/commodities.h>

NOTES

BUGS

INTERNALS

HISTORY
18.07.1999 SDuvan
Finally -- commodities.library