grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / datatypes / releasedtdrawinfo.c
blob2d7248ea7b541074e483b4c8458b83529ea2262e
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/alib.h>
12 #include <datatypes/datatypesclass.h>
13 #include <clib/boopsistubs.h>
16 /*****************************************************************************
18 NAME */
20 AROS_LH2(VOID, ReleaseDTDrawInfo,
22 /* SYNOPSIS */
23 AROS_LHA(Object *, o , A0),
24 AROS_LHA(APTR , handle, A1),
26 /* LOCATION */
27 struct Library *, DataTypesBase, 22, DataTypes)
29 /* FUNCTION
31 Release the handle obtained from ObtainDTDrawInfoA(); invokes the object's
32 DTM_RELEASEDRAWINFO method sending the dtReleaseDrawInfo message.
34 INPUTS
36 o -- pointer to the data type object the drawinfo of which to
37 release; may be NULL
38 handle -- handle got from ObtainDTDrawInfoA()
40 RESULT
42 A private handle that must be passed to ReleaseDTDrawInfo when the
43 application is done drawing the object, or NULL if failure.
45 TAGS
47 NOTES
49 EXAMPLE
51 BUGS
53 SEE ALSO
55 DrawDTObjectA(), ObtainDTDrawInfoA()
57 INTERNALS
59 HISTORY
61 29.8.99 SDuvan implemented
63 *****************************************************************************/
65 AROS_LIBFUNC_INIT
67 struct dtReleaseDrawInfo rdi;
69 if(o == NULL)
70 return;
72 rdi.MethodID = DTM_RELEASEDRAWINFO;
73 rdi.dtr_Handle = handle;
75 DoMethodA(o, (Msg)&rdi);
77 AROS_LIBFUNC_EXIT
78 } /* ReleaseDTDrawInfoA */