shellhooks.c File Reference

#include "frontier.h"
#include "standard.h"
#include "shell.h"
#include "shellhooks.h"

Include dependency graph for shellhooks.c:

Go to the source code of this file.

Defines

#define maxkeyboardhooks   2
#define maxdirtyhooks   2
#define maxmenuhooks   3
#define maxeventhooks   5
#define maxscraphooks   7
#define maxmemoryhooks   3
#define maxfilehooks   1
#define maxwakeuphooks   2

Functions

boolean shellpushkeyboardhook (callback routine)
boolean shellcallkeyboardhooks (void)
boolean shellpushdirtyhook (callback routine)
boolean shellcalldirtyhooks (void)
boolean shellpushmenuhook (menuhookcallback routine)
boolean shellcallmenuhooks (short idmenu, short iditem)
boolean shellpusheventhook (eventhookcallback routine)
boolean shellpopeventhook (void)
boolean shellcalleventhooks (EventRecord *ev, WindowPtr w)
boolean shellpusherrorhook (errorhookcallback routine)
boolean shellpoperrorhook (void)
boolean shellcallerrorhooks (bigstring bs)
boolean shellpushscraphook (scraphookcallback routine)
boolean shellcallscraphooks (Handle hscrap)
boolean shellpushmemoryhook (memoryhookcallback routine)
boolean shellcallmemoryhooks (long *ctbytesneeded)
boolean shellpushfilehook (callback routine)
boolean shellcallfilehooks (void)
boolean shellpushwakeuphook (wakeuphookcallback routine)
boolean shellcallwakeuphooks (hdlprocessthread hthread)

Variables

static short ctkeyboardhooks = 0
callback keyboardhooks [maxkeyboardhooks]
static short ctdirtyhooks = 0
callback dirtyhooks [maxdirtyhooks]
static short ctmenuhooks = 0
menuhookcallback menuhooks [maxmenuhooks]
static short cteventhooks = 0
eventhookcallback eventhooks [maxeventhooks]
short cterrorhooks = 0
errorhookcallback errorhooks [maxerrorhooks]
static short ctscraphooks = 0
scraphookcallback scraphooks [maxscraphooks]
static short ctmemoryhooks = 0
memoryhookcallback memoryhooks [maxmemoryhooks]
static short ctfilehooks = 0
static callback filehooks [maxfilehooks]
static short ctwakeuphooks = 0
static wakeuphookcallback wakeuphooks [maxwakeuphooks]


Define Documentation

#define maxdirtyhooks   2
 

Definition at line 90 of file shellhooks.c.

Referenced by shellpushdirtyhook().

#define maxeventhooks   5
 

Definition at line 192 of file shellhooks.c.

Referenced by shellpusheventhook().

#define maxfilehooks   1
 

Definition at line 419 of file shellhooks.c.

Referenced by shellpushfilehook().

#define maxkeyboardhooks   2
 

Definition at line 37 of file shellhooks.c.

Referenced by shellpushkeyboardhook().

#define maxmemoryhooks   3
 

Definition at line 367 of file shellhooks.c.

Referenced by shellpushmemoryhook().

#define maxmenuhooks   3
 

Definition at line 141 of file shellhooks.c.

Referenced by shellpushmenuhook().

#define maxscraphooks   7
 

Definition at line 315 of file shellhooks.c.

Referenced by shellpushscraphook().

#define maxwakeuphooks   2
 

Definition at line 465 of file shellhooks.c.

Referenced by shellpushwakeuphook().


Function Documentation

boolean shellcalldirtyhooks void   ) 
 

Definition at line 112 of file shellhooks.c.

References ctdirtyhooks, dirtyhooks, and i.

Referenced by windowsetchanges().

boolean shellcallerrorhooks bigstring  bs  ) 
 

Definition at line 284 of file shellhooks.c.

References cterrorhooks, errorhooks, and i.

Referenced by shellerrormessage().

boolean shellcalleventhooks EventRecord ev,
WindowPtr  w
 

Definition at line 224 of file shellhooks.c.

References cteventhooks, eventhooks, and i.

Referenced by shellhandleevent(), shellhandlekeystroke(), and shellhandlemouse().

boolean shellcallfilehooks void   ) 
 

Definition at line 441 of file shellhooks.c.

References ctfilehooks, filehooks, and i.

Referenced by shellclose(), shellopenfile(), and shellrevert().

boolean shellcallkeyboardhooks void   ) 
 

Definition at line 59 of file shellhooks.c.

References ctkeyboardhooks, i, and keyboardhooks.

Referenced by shellhandlekeystroke().

boolean shellcallmemoryhooks long ctbytesneeded  ) 
 

Definition at line 389 of file shellhooks.c.

References ctmemoryhooks, i, and memoryhooks.

Referenced by langfunctionvalue(), and memoryerror().

boolean shellcallmenuhooks short  idmenu,
short  iditem
 

Definition at line 163 of file shellhooks.c.

References ctmenuhooks, i, and menuhooks.

Referenced by shellhandlemenu().

boolean shellcallscraphooks Handle  hscrap  ) 
 

Definition at line 337 of file shellhooks.c.

References ctscraphooks, i, and scraphooks.

Referenced by shellreadscrap().

boolean shellcallwakeuphooks hdlprocessthread  hthread  ) 
 

Definition at line 487 of file shellhooks.c.

References ctwakeuphooks, i, and wakeuphooks.

Referenced by wakeprocessthread().

boolean shellpoperrorhook void   ) 
 

Definition at line 274 of file shellhooks.c.

References assert, and cterrorhooks.

Referenced by callosafunction(), coercionpossible(), langipcunhookerrors(), langipcunhookfasterrors(), langunhookerrors(), and tablegetcellstring().

boolean shellpopeventhook void   ) 
 

Definition at line 214 of file shellhooks.c.

References assert, and cteventhooks.

Referenced by langdialogitemhit().

boolean shellpushdirtyhook callback  routine  ) 
 

Definition at line 97 of file shellhooks.c.

References ctdirtyhooks, dirtyhooks, idtoomanydirtyhooks, maxdirtyhooks, shellinternalerror, and STR_increase_maxdirtyhooks.

Referenced by langerrorstart(), and scriptstart().

boolean shellpusherrorhook errorhookcallback  routine  ) 
 

Definition at line 260 of file shellhooks.c.

References cterrorhooks, errorhooks, idtoomanyerrorhooks, maxerrorhooks, shellinternalerror, and STR_increase_maxerrorhooks.

Referenced by callosafunction(), coercionpossible(), langhookerrors(), langipchookerrors(), langipchookfasterrors(), and tablegetcellstring().

boolean shellpusheventhook eventhookcallback  routine  ) 
 

Definition at line 199 of file shellhooks.c.

References cteventhooks, eventhooks, idtoomanyeventhooks, maxeventhooks, shellinternalerror, and STR_increase_maxeventhooks.

Referenced by langdialogitemhit(), and langipcinit().

boolean shellpushfilehook callback  routine  ) 
 

Definition at line 426 of file shellhooks.c.

References ctfilehooks, filehooks, idtoomanyfilehooks, maxfilehooks, shellinternalerror, and STR_increase_maxfilehooks.

Referenced by initosacomponent().

boolean shellpushkeyboardhook callback  routine  ) 
 

Definition at line 44 of file shellhooks.c.

References ctkeyboardhooks, idtoomanykeyboardhooks, keyboardhooks, maxkeyboardhooks, shellinternalerror, and STR_increase_maxkeyboardhooks.

Referenced by initprocess().

boolean shellpushmemoryhook memoryhookcallback  routine  ) 
 

Definition at line 374 of file shellhooks.c.

References ctmemoryhooks, idtoomanymemoryhooks, maxmemoryhooks, memoryhooks, shellinternalerror, and STR_increase_maxmemoryhooks.

Referenced by initbitmaps(), initlang(), and initmemory().

boolean shellpushmenuhook menuhookcallback  routine  ) 
 

Definition at line 148 of file shellhooks.c.

References ctmenuhooks, idtoomanymenuhooks, maxmenuhooks, menuhooks, shellinternalerror, and STR_increase_maxmenuhooks.

Referenced by ccstart(), and opstart().

boolean shellpushscraphook scraphookcallback  routine  ) 
 

Definition at line 322 of file shellhooks.c.

References ctscraphooks, idtoomanyscraphooks, maxscraphooks, scraphooks, shellinternalerror, and STR_increase_maxscraphooks.

Referenced by menustart(), opstart(), scriptstart(), tablestart(), and wpstart().

boolean shellpushwakeuphook wakeuphookcallback  routine  ) 
 

Definition at line 472 of file shellhooks.c.

References ctwakeuphooks, idtoomanyfilehooks, maxwakeuphooks, shellinternalerror, STR_increase_maxfilehooks, and wakeuphooks.

Referenced by fwsNetEventLaunch().


Variable Documentation

short ctdirtyhooks = 0 [static]
 

Definition at line 92 of file shellhooks.c.

Referenced by shellcalldirtyhooks(), and shellpushdirtyhook().

short cterrorhooks = 0
 

Definition at line 255 of file shellhooks.c.

Referenced by copythreadglobals(), shellcallerrorhooks(), shellpoperrorhook(), shellpusherrorhook(), and swapinthreadglobals().

short cteventhooks = 0 [static]
 

Definition at line 194 of file shellhooks.c.

Referenced by shellcalleventhooks(), shellpopeventhook(), and shellpusheventhook().

short ctfilehooks = 0 [static]
 

Definition at line 421 of file shellhooks.c.

Referenced by shellcallfilehooks(), and shellpushfilehook().

short ctkeyboardhooks = 0 [static]
 

Definition at line 39 of file shellhooks.c.

Referenced by shellcallkeyboardhooks(), and shellpushkeyboardhook().

short ctmemoryhooks = 0 [static]
 

Definition at line 369 of file shellhooks.c.

Referenced by shellcallmemoryhooks(), and shellpushmemoryhook().

short ctmenuhooks = 0 [static]
 

Definition at line 143 of file shellhooks.c.

Referenced by shellcallmenuhooks(), and shellpushmenuhook().

short ctscraphooks = 0 [static]
 

Definition at line 317 of file shellhooks.c.

Referenced by shellcallscraphooks(), and shellpushscraphook().

short ctwakeuphooks = 0 [static]
 

Definition at line 467 of file shellhooks.c.

Referenced by shellcallwakeuphooks(), and shellpushwakeuphook().

callback dirtyhooks[maxdirtyhooks]
 

Definition at line 94 of file shellhooks.c.

Referenced by shellcalldirtyhooks(), and shellpushdirtyhook().

errorhookcallback errorhooks[maxerrorhooks]
 

Definition at line 257 of file shellhooks.c.

Referenced by copythreadglobals(), shellcallerrorhooks(), shellpusherrorhook(), and swapinthreadglobals().

eventhookcallback eventhooks[maxeventhooks]
 

Definition at line 196 of file shellhooks.c.

Referenced by shellcalleventhooks(), and shellpusheventhook().

callback filehooks[maxfilehooks] [static]
 

Definition at line 423 of file shellhooks.c.

Referenced by shellcallfilehooks(), and shellpushfilehook().

callback keyboardhooks[maxkeyboardhooks]
 

Definition at line 41 of file shellhooks.c.

Referenced by shellcallkeyboardhooks(), and shellpushkeyboardhook().

memoryhookcallback memoryhooks[maxmemoryhooks]
 

Definition at line 371 of file shellhooks.c.

Referenced by shellcallmemoryhooks(), and shellpushmemoryhook().

menuhookcallback menuhooks[maxmenuhooks]
 

Definition at line 145 of file shellhooks.c.

Referenced by shellcallmenuhooks(), and shellpushmenuhook().

scraphookcallback scraphooks[maxscraphooks]
 

Definition at line 319 of file shellhooks.c.

Referenced by shellcallscraphooks(), and shellpushscraphook().

wakeuphookcallback wakeuphooks[maxwakeuphooks] [static]
 

Definition at line 469 of file shellhooks.c.

Referenced by shellcallwakeuphooks(), and shellpushwakeuphook().


Generated on Tue Jun 13 02:07:26 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6