shellhooks.h

Go to the documentation of this file.
00001 
00002 /*  $Id: shellhooks.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #ifndef shellhooksinclude
00029 #define shellhooksinclude
00030 
00031 #ifndef processinclude
00032     #include "process.h"
00033 #endif
00034 
00035 
00036 /*types*/
00037 
00038 typedef boolean (*menuhookcallback) (short, short);
00039 
00040 typedef boolean (*eventhookcallback) (EventRecord *, WindowPtr);
00041 
00042 typedef boolean (*errorhookcallback) (bigstring);
00043 
00044 typedef boolean (*scraphookcallback) (Handle);
00045 
00046 typedef boolean (*memoryhookcallback) (long *);
00047 
00048 typedef boolean (*wakeuphookcallback) (struct tythreadglobals **);
00049 
00050 
00051 /*globals*/
00052 
00053 #define maxerrorhooks 5
00054 
00055 extern short cterrorhooks;
00056 
00057 extern errorhookcallback errorhooks [maxerrorhooks];
00058 
00059 
00060 /*prototypes*/
00061 
00062 extern boolean shellpushkeyboardhook (callback);
00063 
00064 extern boolean shellcallkeyboardhooks (void);
00065 
00066 extern boolean shellpushdirtyhook (callback);
00067 
00068 extern boolean shellcalldirtyhooks (void);
00069 
00070 extern boolean shellpushmenuhook (menuhookcallback);
00071 
00072 extern boolean shellcallmenuhooks (short, short);
00073 
00074 extern boolean shellpusheventhook (eventhookcallback);
00075 
00076 extern boolean shellpopeventhook (void);
00077 
00078 extern boolean shellcalleventhooks (EventRecord *, WindowPtr);
00079 
00080 extern boolean shellpusherrorhook (errorhookcallback);
00081 
00082 extern boolean shellpoperrorhook (void);
00083 
00084 extern boolean shellcallerrorhooks (bigstring);
00085 
00086 extern boolean shellpushscraphook (scraphookcallback);
00087 
00088 extern boolean shellcallscraphooks (Handle);
00089 
00090 extern boolean shellpushmemoryhook (memoryhookcallback);
00091 
00092 extern boolean shellcallmemoryhooks (long *);
00093 
00094 extern boolean shellpushfilehook (callback);
00095 
00096 extern boolean shellcallfilehooks (void);
00097 
00098 extern boolean shellpushwakeuphook (wakeuphookcallback);
00099 
00100 extern boolean shellcallwakeuphooks (hdlprocessthread);
00101 
00102 
00103 #endif /*shellhooksinclude*/
00104 

Generated on Wed May 31 18:20:01 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6