2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
9 /*****************************************************************************
13 #include <proto/commodities.h>
15 AROS_LH2I(LONG
, SetCxObjPri
,
19 AROS_LHA(CxObj
*, co
, A0
),
20 AROS_LHA(LONG
, pri
, D0
),
24 struct Library
*, CxBase
, 13, Commodities
)
28 Set the priority of the commodity object 'co'.
32 co -- the commodity object the priority of which to change (may be
34 pri -- the new priority to give the object (priorities range from
35 -128 to 127, a value of 0 is normal)
39 The old priority, that is the priority of the object prior to this
48 When using this function, the object is NOT repositioned according to
49 the priority given. To achive this, remove the object from the commodity
50 hierarchy using RemoveCxObj(), use SetCxPri() and reinsert it with
61 ******************************************************************************/
73 oldPri
= co
->co_Node
.ln_Pri
;
74 co
->co_Node
.ln_Pri
= pri
;