2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*****************************************************************************
14 #include <proto/commodities.h>
17 AROS_LH2I(LONG
, SetCxObjPri
,
21 AROS_LHA(CxObj
*, co
, A0
),
22 AROS_LHA(LONG
, pri
, D0
),
26 struct Library
*, CxBase
, 13, Commodities
)
30 Set the priority of the commodity object 'co'.
34 co -- the commodity object the priority of which to change (may be
36 pri -- the new priority to give the object (priorities range from
37 -128 to 127, a value of 0 is normal)
41 The old priority, that is the priority of the object prior to this
50 When using this function, the object is NOT repositioned according to
51 the priority given. To achive this, remove the object from the commodity
52 hierarchy using RemoveCxObj(), use SetCxPri() and reinsert it with
63 ******************************************************************************/
75 oldPri
= co
->co_Node
.ln_Pri
;
76 co
->co_Node
.ln_Pri
= pri
;