2 Copyright © 1995-2018, The AROS Development Team. All rights reserved.
5 Desc: Get an attribute of an object.
8 #include <exec/lists.h>
9 #include <proto/exec.h>
11 #include <aros/debug.h>
12 #include <oop/static_mid.h>
14 /*****************************************************************************
17 #include <proto/oop.h>
19 AROS_LH3(IPTR
, OOP_GetAttr
,
22 AROS_LHA(OOP_Object
*, object
, A0
),
23 AROS_LHA(OOP_AttrID
, attrID
, A1
),
24 AROS_LHA(IPTR
*, storage
, A2
),
27 struct Library
*, OOPBase
, 16, OOP
)
30 Gets the specifed attribute from the object,
31 and puts it into storage.
34 object - pointer to object from which we want to
37 attrID - Attribute ID for property to get.
39 storage - Pointer to IPTR the fetched data should be put into.
55 *****************************************************************************/
60 struct IntOOPBase
*iOOPBase
= (struct IntOOPBase
*)OOPBase
;
62 EnterFunc(bug("OOP_GetAttr())\n"));
64 if (!iOOPBase
->ob_mRoot_Get
)
65 iOOPBase
->ob_mRoot_Get
= OOP_GetMethodID(IID_Root
, moRoot_Get
);
68 p
.mID
= iOOPBase
->ob_mRoot_Get
;
72 /* Call the Get() method on the object */
74 ReturnPtr ("OOP_GetAttr", IPTR
, OOP_DoMethod(object
, (OOP_Msg
)&p
));