Fixed compiler warnings.
[AROS.git] / compiler / alib / dogadgetmethod.c
blob414ff8ff494a6f804bce3d2688555c56c73c2d12
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef INTUITION_CLASSUSR_H
7 # include <intuition/classusr.h>
8 #endif
9 #include "alib_intern.h"
10 #define NO_INLINE_STDARG /* turn off inline def */
11 #include <proto/alib.h>
13 extern struct IntuitionBase * IntuitionBase;
15 /*****************************************************************************
17 NAME */
18 #include <intuition/intuition.h>
19 #include <proto/intuition.h>
21 IPTR DoGadgetMethod (
23 /* SYNOPSIS */
24 struct Gadget * gad,
25 struct Window * win,
26 struct Requester * req,
27 ULONG methodId,
28 ...)
30 /* FUNCTION
31 Invokes a boopsi method on a object with a GadgetInfo derived from
32 the supplied window or requester parameter.
34 INPUTS
35 gad - The gadget to work on
36 win - The window which contains the gadget or the requester with
37 the gadgets.
38 req - If the gadget is in a requester, you must specify that one,
39 too.
40 methodId - The message to the gadget follows here.
42 RESULT
43 The result depends on the contents of the message sent to the
44 gadget.
46 NOTES
48 EXAMPLE
50 BUGS
52 SEE ALSO
54 INTERNALS
56 HISTORY
57 29-10-95 digulla automatically created from
58 intuition_lib.fd and clib/intuition_protos.h
59 25-10-96 calid submitted the code
61 *****************************************************************************/
63 AROS_SLOWSTACKMETHODS_PRE(methodId)
64 retval = DoGadgetMethodA (gad
65 , win
66 , req
67 , AROS_SLOWSTACKMETHODS_ARG(methodId)
69 AROS_SLOWSTACKMETHODS_POST
70 } /* DoGadgetMethod */