home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v40.lha / V40 / include / utility / hooks.i < prev    next >
Text File  |  1993-10-15  |  898b  |  40 lines

  1.     IFND UTILITY_HOOKS_I
  2. UTILITY_HOOKS_I SET 1
  3. **
  4. **    $VER: hooks.i 39.1 (20.1.92)
  5. **    Includes Release 40.15
  6. **
  7. **    Callback hooks
  8. **
  9. **    (C) Copyright 1989-1993 Commodore-Amiga Inc.
  10. **    All Rights Reserved
  11. **
  12.  
  13. ;---------------------------------------------------------------------------
  14.  
  15.     IFND EXEC_TYPES_I
  16.     INCLUDE "exec/types.i"
  17.     ENDC
  18.  
  19.     IFND EXEC_NODES_I
  20.     INCLUDE "exec/nodes.i"
  21.     ENDC
  22.  
  23. ;---------------------------------------------------------------------------
  24.  
  25. ; Hook conventions
  26. ;    A0 - pointer to hook itself
  27. ;    A1 - pointer to parameter packet ("message")
  28. ;    A2 - Hook specific address data ("object," e.g, gadget )
  29.  
  30.    STRUCTURE HOOK,MLN_SIZE
  31.     APTR h_Entry        ; assembler entry point
  32.     APTR h_SubEntry        ; optional HLL entry point
  33.     APTR h_Data        ; owner specific
  34.    LABEL h_SIZEOF
  35.  
  36.  
  37. ;---------------------------------------------------------------------------
  38.  
  39.     ENDC    ; UTILITY_HOOKS_I
  40.