revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / datatypes / getdtmethods.c
blob51af0d31def0c620fb431db93232da3abb8ecfba
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <proto/alib.h>
10 #include <proto/intuition.h>
11 #include <intuition/classusr.h>
13 #include "datatypes_intern.h"
15 /*****************************************************************************
17 NAME */
18 #include <proto/datatypes.h>
20 AROS_LH1(ULONG *, GetDTMethods,
22 /* SYNOPSIS */
23 AROS_LHA(Object *, object, A0),
25 /* LOCATION */
26 struct Library *, DataTypesBase, 17, DataTypes)
28 /* FUNCTION
30 Get a list of the methods an object supports.
32 INPUTS
34 object -- pointer to a data type object
36 RESULT
38 Pointer to a ULONG array which is terminated ~0; the array is only
39 valid until the object is disposed of.
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
49 GetDTTriggerMethods()
51 INTERNALS
53 HISTORY
55 *****************************************************************************/
57 AROS_LIBFUNC_INIT
59 ULONG *retval = NULL;
61 struct opGet opGet;
63 if(object == NULL)
64 return NULL;
66 opGet.MethodID = OM_GET;
67 opGet.opg_AttrID = DTA_Methods;
68 opGet.opg_Storage = (IPTR *)&retval;
70 if(!DoMethodA(object, (Msg)&opGet))
71 retval = NULL;
73 return retval;
75 AROS_LIBFUNC_EXIT
76 } /* GetDTMethods */