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