2 Copyright © 1995-2007, 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>
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_LH3(IPTR
, OOP_GetAttr
,
27 AROS_LHA(OOP_Object
*, object
, A0
),
28 AROS_LHA(OOP_AttrID
, attrID
, A1
),
29 AROS_LHA(IPTR
*, storage
, A2
),
32 struct Library
*, OOPBase
, 16, OOP
)
35 Gets the specifed attribute from the object,
36 and puts it into storage.
39 object - pointer to object from which we want to
42 attrID - Attribute ID for property to get.
44 storage - Pointer to IPTR the gitten data should be put
63 29-10-95 digulla automatically created from
64 intuition_lib.fd and clib/intuition_protos.h
66 *****************************************************************************/
73 EnterFunc(bug("OOP_GetAttr())\n"));
76 mid
= OOP_GetMethodID(IID_Root
, moRoot_Get
);
83 /* Call the Get() method on the object */
85 ReturnPtr ("OOP_GetAttr", IPTR
, OOP_DoMethod(object
, (OOP_Msg
)&p
));