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>
13 #ifndef AROS_CREATE_ROM
14 # define STATIC_MID static OOP_MethodID mid
16 # define STATIC_MID OOP_MethodID mid = 0
19 /*****************************************************************************
22 #include <proto/oop.h>
24 AROS_LH2(IPTR
, OOP_SetAttrs
,
27 AROS_LHA(OOP_Object
*, object
, A0
),
28 AROS_LHA(struct TagItem
*, attrList
, A1
),
31 struct Library
*, OOPBase
, 17, OOP
)
34 Sets the object's attributes as specified in the
38 object - pointer to a object in whih we
39 want to set attributes.
41 tagList - List of attributes an their new values.
59 29-10-95 digulla automatically created from
60 intuition_lib.fd and clib/intuition_protos.h
62 *****************************************************************************/
69 EnterFunc(bug("OOP_SetAttrs())\n"));
70 ASSERT_VALID_PTR(object
);
71 ASSERT_VALID_PTR(attrList
);
74 mid
= OOP_GetMethodID(IID_Root
, moRoot_Set
);
77 p
.attrList
= attrList
;
79 /* Call the Get() method on the object */
80 ReturnPtr ("OOP_SetAttrs", IPTR
, OOP_DoMethod(object
, (OOP_Msg
)&p
));