Ejemplo n.º 1
0
IPTR DoSuperMethod (Class * cl, Object * obj, STACKULONG MethodID, ...)
{
    if ((!obj) || (!cl))
        return 0L;
    AROS_SLOWSTACKMETHODS_PRE(MethodID)    
    retval = CALLHOOKPKT((struct Hook *)cl->cl_Super, obj, AROS_SLOWSTACKMETHODS_ARG(MethodID));
    AROS_SLOWSTACKMETHODS_POST
} /* DoSuperMethod()*/
Ejemplo n.º 2
0
IPTR DoMethod (Object * obj, IPTR MethodID, ...)
{
    ASSERT_VALID_PTR(obj);
    if (!obj)
    	return 0L;

    ASSERT_VALID_PTR(OCLASS(obj));

    AROS_SLOWSTACKMETHODS_PRE(MethodID)
    retval = CALLHOOKPKT((struct Hook *) OCLASS(obj), obj, AROS_SLOWSTACKMETHODS_ARG(MethodID));
    AROS_SLOWSTACKMETHODS_POST
} /* DoMethod() */
Ejemplo n.º 3
0
	IPTR DoMethodA (

/*  SYNOPSIS */
	Object * obj,
	Msg	 message)

/*  FUNCTION
	Invokes a method on a BOOPSI object. The dispatcher of the class the
	object is inherited from is called. For more information about methods
	a class supports, see the class documentation.

    INPUTS
	obj - The object on which the method is to be performed.
	message - The message. The first field is the same for all methods and
		  specifies which method is to be invoked (see
		  <intuition/classusr.h>).

    RESULT
	Class and method dependent. See the class documentation. A value of 0
	can be a valid return code but can also mean that a method is not
	supported.

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO
	intuition.library/NewObjectA(), intuition.library/SetAttrsA(), intuition.library/GetAttr(),
	intuition.library/DisposeObject(), CoerceMethodA(),
        DoSuperMethodA(), <intuition/classusr.h>

******************************************************************************/
{
    ASSERT_VALID_PTR(obj);

    if (!obj)
	return 0L;

    ASSERT_VALID_PTR(OCLASS(obj));
    ASSERT_VALID_PTR(message);

    return CALLHOOKPKT((struct Hook *) OCLASS(obj), obj, message);
} /* DoMethodA */
Ejemplo n.º 4
0
	IPTR DoSuperMethodA (

/*  SYNOPSIS */
	Class  * cl,
	Object * obj,
	Msg	 message)

/*  FUNCTION
	Invokes a method on a BOOPSI object, as if the object were an instance
	of the superclass of the class passed in. That is, the dispatcher of
	the superclass is called instead of the object's class's dispatcher
	(assuming the specified class is the object's own class).

    INPUTS
	cl - Class whose superclass's dispatcher is to be called. This is
	    typically the object's own class.
	obj - The object on which the method is to be performed.
	message - The message. The first field is the same for all methods and
		  specifies which method is to be invoked (see
		  <intuition/classusr.h>).

    RESULT
	Class and method dependent. See the class documentation. A value of 0
	can mean a valid return code but can also mean that a method was not
	supported.

    NOTES

    EXAMPLE

    BUGS

    SEE ALSO
	intuition.library/NewObjectA(), intuition.library/SetAttrsA(),
	intuition.library/GetAttr(), intuition.library/DisposeObject(),
	DoMethodA(), CoerceMethodA(), <intuition/classes.h>

******************************************************************************/
{
    if ((!obj) || (!cl))
        return 0L;
    return CALLHOOKPKT((struct Hook *)cl->cl_Super, obj, message);
} /* DoSuperMethodA() */
Ejemplo n.º 5
0
void idleTask(struct ExecBase *sysBase)
{
  KRNWireImpl(IdleTask);
  CALLHOOKPKT(krnIdleTaskImpl,0,0);
}