home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1999 / MacHack 1999.toast / Papers / Downs.FileSystem / source / notification / Callbacks.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-06-24  |  555 b   |  32 lines  |  [TEXT/CWIE]

  1. #pragma once
  2.  
  3. #define    FS_SIGNATURE                'zzz0'
  4. #define    GESTALT_ADD_CALLBACK        'gACA'
  5. #define    GESTALT_REMOVE_CALLBACK        'gRCA'
  6.  
  7. enum {
  8.   kCreateFlag
  9. };
  10.  
  11. typedef    struct    FWData
  12. {
  13.     short                    theTrapId;
  14.     short                    theVRefNum;
  15.     long                    theParID;
  16.     Str63                    theString;
  17.     OSType                    theFileType;
  18. }    FWData, *FWDataPtr;
  19.  
  20. typedef    struct    FWSubscribe
  21. {
  22.     short                    theAction;
  23.     long                    *theCallbackAddr;
  24. }    FWSubscribe, *FWSubscribePtr;
  25.  
  26. asm void PrologGlue();
  27. asm void EpilogGlue();
  28. pascal    void        MyCreateCallback( FWData theFWData );
  29. void    Subscribe();
  30. void    Unsubscribe();
  31.  
  32.