2 Copyright © 1995-2007, 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 an their new values.
54 29-10-95 digulla automatically created from
55 intuition_lib.fd and clib/intuition_protos.h
57 *****************************************************************************/
62 struct IntOOPBase
*iOOPBase
= (struct IntOOPBase
*)OOPBase
;
64 EnterFunc(bug("OOP_SetAttrs())\n"));
65 ASSERT_VALID_PTR(object
);
66 ASSERT_VALID_PTR_OR_NULL(attrList
);
68 if (!iOOPBase
->ob_mRoot_Set
)
69 iOOPBase
->ob_mRoot_Set
= OOP_GetMethodID(IID_Root
, moRoot_Set
);
71 p
.mID
= iOOPBase
->ob_mRoot_Set
;
72 p
.attrList
= attrList
;
74 /* Call the Set() method on the object */
75 ReturnPtr ("OOP_SetAttrs", IPTR
, OOP_DoMethod(object
, (OOP_Msg
)&p
));