2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
5 Desc: Set attributes of an object.
8 #include <exec/lists.h>
9 #include <proto/exec.h>
10 #include <aros/debug.h>
12 #include <oop/static_mid.h>
14 /*****************************************************************************
17 #include <proto/oop.h>
19 AROS_LH2(IPTR
, OOP_SetAttrs
,
22 AROS_LHA(OOP_Object
*, object
, A0
),
23 AROS_LHA(struct TagItem
*, attrList
, A1
),
26 struct Library
*, OOPBase
, 17, OOP
)
29 Sets the object's attributes as specified in the
33 object - pointer to a object in whih we
34 want to set attributes.
36 tagList - List of attributes and their new values.
52 *****************************************************************************/
57 struct IntOOPBase
*iOOPBase
= (struct IntOOPBase
*)OOPBase
;
59 EnterFunc(bug("OOP_SetAttrs())\n"));
60 ASSERT_VALID_PTR(object
);
61 ASSERT_VALID_PTR_OR_NULL(attrList
);
63 if (!iOOPBase
->ob_mRoot_Set
)
64 iOOPBase
->ob_mRoot_Set
= OOP_GetMethodID(IID_Root
, moRoot_Set
);
66 p
.mID
= iOOPBase
->ob_mRoot_Set
;
67 p
.attrList
= attrList
;
69 /* Call the Set() method on the object */
70 ReturnPtr ("OOP_SetAttrs", IPTR
, OOP_DoMethod(object
, (OOP_Msg
)&p
));