/*
    (C) 1995-96 AROS - The Amiga Replacement OS
    $Id: dogadgetmethod.c,v 1.1 1996/10/25 14:14:47 aros Exp $

    Desc:
    Lang: english
*/

#ifndef INTUITION_CLASSUSR_H
#   include <intuition/classusr.h>
#endif
#include <clib/intuition_protos.h>
#include <stdarg.h>

/*****************************************************************************

    NAME */
	#include <intuition/intuition.h>
	#include <clib/intuition_protos.h>

	IPTR DoGadgetMethod (

/*  SYNOPSIS */
	struct Gadget	 * gad,
	struct Window	 * win,
	struct Requester * req,
	ULONG		   methodId,
	...)

/*  FUNCTION
	Invokes a boopsi method on a object with a GadgetInfo derived from
	the supplied window or requester parameter.

    INPUTS
	gad - The gadget to work on
	win - The window which contains the gadget or the requester with
		the gadgets.
	req - If the gadget is in a requester, you must specify that one,
		too.
	methodId - The message to the gadget follows here.

    RESULT
	The result depends on the contents of the message sent to the
	gadget.

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO

    INTERNALS

    HISTORY
	29-10-95    digulla automatically created from
			    intuition_lib.fd and clib/intuition_protos.h
	25-10-96    calid   submitted the code

*****************************************************************************/
{
    return DoGadgetMethodA (gad, win, req, (Msg)&methodId);
} /* DoGadgetMethod */
