
#define shellhooksinclude


/*types*/

typedef boolean (*menuhookcallback) (short, short);

typedef boolean (*eventhookcallback) (EventRecord *, WindowPtr);

typedef boolean (*errorhookcallback) (bigstring);

typedef boolean (*scraphookcallback) (Handle);

typedef boolean (*memoryhookcallback) (long *);

typedef boolean (*wakeuphookcallback) (struct tythreadglobals **);


/*globals*/

#define maxerrorhooks 5

extern short cterrorhooks;

extern errorhookcallback errorhooks [maxerrorhooks];


/*prototypes*/

extern boolean shellpushkeyboardhook (callback);

extern boolean shellcallkeyboardhooks (void);

extern boolean shellpushdirtyhook (callback);

extern boolean shellcalldirtyhooks (void);

extern boolean shellpushmenuhook (menuhookcallback);

extern boolean shellcallmenuhooks (short, short);

extern boolean shellpusheventhook (eventhookcallback);

extern boolean shellpopeventhook (void);

extern boolean shellcalleventhooks (EventRecord *, WindowPtr);

extern boolean shellpusherrorhook (errorhookcallback);

extern boolean shellpoperrorhook (void);

extern boolean shellcallerrorhooks (bigstring);

extern boolean shellpushscraphook (scraphookcallback);

extern boolean shellcallscraphooks (Handle);

extern boolean shellpushmemoryhook (memoryhookcallback);

extern boolean shellcallmemoryhooks (long *);

extern boolean shellpushfilehook (callback);

extern boolean shellcallfilehooks (void);

extern boolean shellpushwakeuphook (wakeuphookcallback);

extern boolean shellcallwakeuphooks (struct tythreadglobals **);




