home *** CD-ROM | disk | FTP | other *** search
- #include <classes/Utility/Hooks.h>
-
- #include <pragma/utility_lib.h>
-
- #include <linkerfunc.h>
-
- HookC::HookC(APTR data)
- {
- h_Entry = (ULONG (*) ()) &hookEntry;
- h_SubEntry = NULL;
- h_Data = data;
- }
-
- HookC &HookC::operator = (const HookC &s)
- {
- if (this != &s)
- {
- h_SubEntry = s.h_SubEntry;
- h_Data = s.h_Data;
- };
- return *this;
- }
-
- ULONG HookC::hook(APTR object, APTR paramPkt)
- {
- return 0;
- }
-
- ULONG HookC::call(APTR object, APTR paramPkt)
- {
- return CallHookPkt(this,object,paramPkt);
- }
-
- ULONG HookC::hookEntry(register __a0 struct Hook *h,
- register __a2 APTR o, register __a1 APTR msg)
- {
- return ((HookC *) h)->hook(o,msg);
- }
-
-