(C) 1998 AROS - The Amiga Research OS


NAME
#include <>
#include <proto/commodities.h>

LONG SetCxObjPri (co , pri)

LOCATION
In CxBase at offset 13

SYNOPSIS
CxObj * co
LONG pri

FUNCTION
Set the priority of the commodity object 'co'.

INPUTS
co
- the commodity object the priority of which to change (may be NULL)
pri
- the new priority to give the object (priorities range from -128 to 127, a value of 0 is normal)

RESULT
The old priority, that is the priority of the object prior to this operation.

EXAMPLE

SEE ALSO
EnqueueCxObj()

NOTES

BUGS
When using this function, the object is NOT repositioned according to the priority given. To achive this, remove the object from the commodity hierarchy using RemoveCxObj(), use SetCxPri() and reinsert it with EnqueueCxObj().

INTERNALS

HISTORY
18.07.1999 SDuvan
Finally -- commodities.library