home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / source / frntsdk1.cpt / Frontier SDK 1.0 ƒ / Move These Files / UserLand #includes / iac.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-05  |  2.6 KB  |  111 lines

  1.  
  2. /*⌐ Copyright 1989-1991 UserLand Software, Inc.  All Rights Reserved.*/
  3.  
  4.  
  5. #define __IAC__ /*so other modules can tell that we've been included*/
  6.  
  7.  
  8. #ifndef __APPLEEVENTS__
  9.  
  10.     #include <AppleEvents.h>
  11.  
  12. #endif
  13.  
  14.  
  15. typedef struct tyIACglobals { /*this global record helps keep param lists short*/
  16.  
  17.     AppleEvent *event; /*the current event being processed*/
  18.     
  19.     AppleEvent *reply; /*the reply to the current event*/
  20.     
  21.     long refcon; /*the refcon info passed with the message*/
  22.     } tyIACglobals;
  23.     
  24. extern tyIACglobals IACglobals;
  25.  
  26. typedef pascal Boolean (*tyFScallback) (FSSpec *);
  27.  
  28.  
  29.  
  30. /*interapplication communication prototypes*/
  31.     
  32.     pascal Boolean IACinit (void);
  33.     
  34.     pascal Boolean IAChaveappleevents (void);
  35.     
  36.     pascal Boolean IACinstallhandler (AEEventClass, AEEventID, ProcPtr);
  37.     
  38.     pascal Boolean IACinstallcoercionhandler (DescType, DescType, ProcPtr);
  39.     
  40.     pascal Boolean IACnewverb (OSType, OSType, OSType, AppleEvent *);
  41.     
  42.     pascal Boolean IACsendverb (AppleEvent *, AppleEvent *);
  43.     
  44.     pascal Boolean IACdisposeverb (AppleEvent *);
  45.     
  46.     pascal OSType IACgetverbtoken (void);
  47.     
  48.     pascal short IACwaitroutine (EventRecord *, long *, RgnHandle *);
  49.     
  50.     pascal Boolean IACiserrorreply (Str255);
  51.     
  52.     pascal Boolean IACstringtotext (Str255, Handle *);
  53.  
  54.     pascal Boolean IACtexttostring (Handle, Str255);
  55.     
  56.     pascal Boolean IACpushstringparam (Str255, OSType);
  57.     
  58.     pascal Boolean IACpushCstringparam (Str255, OSType);
  59.     
  60.     pascal Boolean IACpushbooleanparam (Boolean val, OSType keyword);
  61.     
  62.     pascal Boolean IACpushshortparam (short, OSType);
  63.     
  64.     pascal Boolean IACpushlongparam (long, OSType);
  65.     
  66.     pascal short IACpushbinaryparam (Handle, OSType);
  67.     
  68.     pascal short IACpushtextparam (Handle, OSType);
  69.     
  70.     pascal Boolean IACgetbinaryparam (OSType, Handle *);
  71.     
  72.     pascal Boolean IACgetstringparam (OSType, Str255);
  73.     
  74.     pascal Boolean IACgetCstringparam (OSType, Str255);
  75.     
  76.     pascal Boolean IACgetbooleanparam (OSType, Boolean *);
  77.     
  78.     pascal Boolean IACgetshortparam (OSType, short *);
  79.     
  80.     pascal Boolean IACgetlongparam (OSType, long *);
  81.     
  82.     pascal Boolean IACgetrectparam (OSType, Rect *);
  83.     
  84.     pascal Boolean IACgetpointparam (OSType, Point *);
  85.     
  86.     pascal Boolean IACgettextparam (OSType, Handle *);
  87.     
  88.     pascal Boolean IACreturnboolean (Boolean);
  89.     
  90.     pascal Boolean IACreturnshort (short);
  91.     
  92.     pascal Boolean IACreturnlong (long);
  93.     
  94.     pascal Boolean IACreturnrect (Rect *);
  95.     
  96.     pascal Boolean IACreturnpoint (Point *);
  97.  
  98.     pascal Boolean IACreturntext (Handle);
  99.     
  100.     pascal Boolean IACreturnstring (Str255);
  101.     
  102.     pascal Boolean IACreturnbinary (Handle);
  103.     
  104.     pascal Boolean IACreturnerror (short, Str255);
  105.     
  106.     pascal void IACnothandlederror (void);
  107.     
  108.     pascal OSErr IACdrivefilelist (tyFScallback);
  109.     
  110.     pascal OSType IACgetsender (void);
  111.