2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: amiga.lib function CallHook() which doesn't use utility.library
8 #include <aros/system.h>
10 #include "alib_intern.h"
12 /******************************************************************************
15 #include <proto/alib.h>
25 Calls a hook with the specified object and parameters.
28 hook - Call this hook.
29 object - This is the object which is passed to the hook. The valid
30 values for this parameter depends on the definition of the called
32 param - Pass these parameters to the specified object
35 The return value depends on the definition of the hook.
46 ******************************************************************************/
48 return CALLHOOKPKT(hook
, object
, param
);
51 IPTR
CallHook (struct Hook
* hook
, APTR object
, ...)
55 retval
= CALLHOOKPKT(hook
, object
, &object
+1);