alsa.audio: limit the supported frequencies to common set
[AROS.git] / workbench / libs / datatypes / obtaindtdrawinfoa.c
blob6ad8f47216220d2d84ce77ea3fd147a5ebf9d5e0
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #define USE_BOOPSI_STUBS
10 #include "datatypes_intern.h"
11 #include <proto/exec.h>
12 #include <proto/alib.h>
13 #include <utility/tagitem.h>
14 #include <datatypes/datatypesclass.h>
15 #include <intuition/classusr.h>
16 #include <clib/boopsistubs.h>
18 /*****************************************************************************
20 NAME */
22 AROS_LH2(APTR, ObtainDTDrawInfoA,
24 /* SYNOPSIS */
25 AROS_LHA(Object *, o , A0),
26 AROS_LHA(struct TagItem *, attrs, A1),
28 /* LOCATION */
29 struct Library *, DataTypesBase, 20, DataTypes)
31 /* FUNCTION
33 Prepare a data type object for drawing into a RastPort; this function
34 will send the DTM_OBTAINDRAWINFO method the object using an opSet
35 message.
37 INPUTS
39 o -- pointer to the data type object to obtain the drawinfo for;
40 may be NULL in which case nothing is done
41 attrs -- additional attributes
43 RESULT
45 A private handle that must be passed to ReleaseDTDrawInfo when the
46 application is done drawing the object, or NULL if failure.
48 TAGS
50 None defined so far.
52 NOTES
54 EXAMPLE
56 BUGS
58 SEE ALSO
60 DrawDTObjectA(), ReleaseDTDrawInfo()
62 INTERNALS
64 HISTORY
66 29.8.99 SDuvan implemented
68 *****************************************************************************/
70 AROS_LIBFUNC_INIT
72 struct opSet ops;
74 if(o == NULL)
75 return NULL;
77 ops.MethodID = DTM_OBTAINDRAWINFO;
78 ops.ops_AttrList = attrs;
79 ops.ops_GInfo = NULL;
81 return (APTR)DoMethodA(o, (Msg)&ops);
83 AROS_LIBFUNC_EXIT
84 } /* ObtainDTDrawInfoA */