osainternal.h File Reference

#include <Components.h>
#include <OSA.h>
#include <UserTalk.h>
#include "processinternal.h"

Include dependency graph for osainternal.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tyMSglobals
struct  tyrecordingstate
struct  tycomponentglobals

Defines

#define typeLAND   'LAND'
#define componentlistnumber   512
#define recordinglistnumber   513
#define CallGNEProc(userRoutine, mask, theEvent)   (*(userRoutine))((mask), (theEvent))
#define NewGNEProc(userRoutine)   (GNEUPP)(userRoutine)
#define CallMSstringcallbackProc(userRoutine, theString)   (*(userRoutine))((theString))
#define NewMSstringcallbackProc(userRoutine)   (MSstringcallbackUPP)(userRoutine)
#define CallMSeventcallbackProc(userRoutine, theEvent)   (*(userRoutine))((theEvent))
#define NewMSeventcallbackProc(userRoutine)   (MSeventcallbackUPP)(userRoutine)
#define CallMSmenuscallbackProc(userRoutine, theMenus)   (*(userRoutine))((theMenus))
#define NewMSmenuscallbackProc(userRoutine)   (MSmenuscallbackUPP)(userRoutine)

Typedefs

typedef pascal Boolean(* GNEProcPtr )(short, EventRecord *)
typedef pascal void(* tyMSstringcallback )(Str255)
typedef pascal void(* tyMSeventcallback )(EventRecord *)
typedef pascal void(* tyMSmenuscallback )(hdlmenuarray)
typedef GNEProcPtr GNEUPP
typedef tyMSstringcallback MSstringcallbackUPP
typedef tyMSeventcallback MSeventcallbackUPP
typedef tyMSmenuscallback MSmenuscallbackUPP
typedef tyMSglobalsptrMSglobals
typedef tyMSglobals ** hdlMSglobals
typedef tycomponentglobals ** hdlcomponentglobals
typedef pascal ComponentResult(* ComponentRoutine )(ComponentParameters *, Handle)

Enumerations

enum  {
  frontierstring = 1, usertalkstring, scriptingcomponentstring, menusharingcomponentstring,
  windowsharingcomponentstring
}
enum  { uppGNEProcInfo }
enum  { uppMSstringcallbackProcInfo }
enum  { uppMSeventcallbackProcInfo }
enum  { uppMSmenuscallbackProcInfo }

Functions

void disposecomponentglobals (hdlcomponentglobals)
boolean newcomponentglobals (Component, long, hdlcomponentglobals *)
pascal OSAError osaScriptError (hdlcomponentglobals, OSType, DescType, AEDesc *)
pascal ComponentResult callosafunction (Handle, ComponentParameters *, ComponentFunctionUPP)
long osapreclientcallback (hdlcomponentglobals)
void osapostclientcallback (hdlcomponentglobals)
GNEUPP osainstallpatch (hdlcomponentglobals)
void osaremovepatch (hdlcomponentglobals, GNEUPP)
boolean getprocessname (ProcessSerialNumber, bigstring, boolean *)
void closeosaservers (void)
Component osaregistercomponent (OSType, long, ComponentRoutine, short, short)

Variables

hdlcomponentglobals osaglobals
boolean flosashutdown


Define Documentation

#define CallGNEProc userRoutine,
mask,
theEvent   )     (*(userRoutine))((mask), (theEvent))
 

Definition at line 167 of file osainternal.h.

#define CallMSeventcallbackProc userRoutine,
theEvent   )     (*(userRoutine))((theEvent))
 

Definition at line 181 of file osainternal.h.

Referenced by sharedmenueventfilter(), and sharedmenuprocessevent().

#define CallMSmenuscallbackProc userRoutine,
theMenus   )     (*(userRoutine))((theMenus))
 

Definition at line 188 of file osainternal.h.

Referenced by InstallSharedMenus(), and osaDisposeSharedMenus().

#define CallMSstringcallbackProc userRoutine,
theString   )     (*(userRoutine))((theString))
 

Definition at line 174 of file osainternal.h.

Referenced by osaRunSharedMenuItem().

#define componentlistnumber   512
 

Definition at line 52 of file osainternal.h.

Referenced by getcomponentstringhandle(), and osaScriptingComponentName().

#define NewGNEProc userRoutine   )     (GNEUPP)(userRoutine)
 

Definition at line 169 of file osainternal.h.

#define NewMSeventcallbackProc userRoutine   )     (MSeventcallbackUPP)(userRoutine)
 

Definition at line 183 of file osainternal.h.

#define NewMSmenuscallbackProc userRoutine   )     (MSmenuscallbackUPP)(userRoutine)
 

Definition at line 190 of file osainternal.h.

#define NewMSstringcallbackProc userRoutine   )     (MSstringcallbackUPP)(userRoutine)
 

Definition at line 176 of file osainternal.h.

#define recordinglistnumber   513
 

Definition at line 53 of file osainternal.h.

Referenced by getrecordingstring().

#define typeLAND   'LAND'
 

Definition at line 50 of file osainternal.h.

Referenced by meloadscript(), osaInitSharedMenus(), osaLoad(), osaRunSharedMenuItem(), osaStore(), scriptbuildtree(), scriptbuttonenabled(), scriptgetnametype(), scriptgettypename(), scripttexttooutlineroutine(), and scriptupdateserverpopup().


Typedef Documentation

typedef pascal ComponentResult(* ComponentRoutine)(ComponentParameters *, Handle)
 

Definition at line 365 of file osainternal.h.

typedef pascal Boolean(* GNEProcPtr)(short, EventRecord *)
 

Definition at line 71 of file osainternal.h.

typedef GNEProcPtr GNEUPP
 

Definition at line 165 of file osainternal.h.

typedef struct tycomponentglobals ** hdlcomponentglobals
 

typedef struct tyMSglobals ** hdlMSglobals
 

typedef tyMSeventcallback MSeventcallbackUPP
 

Definition at line 179 of file osainternal.h.

typedef tyMSmenuscallback MSmenuscallbackUPP
 

Definition at line 186 of file osainternal.h.

typedef tyMSstringcallback MSstringcallbackUPP
 

Definition at line 172 of file osainternal.h.

typedef struct tyMSglobals * ptrMSglobals
 

typedef pascal void(* tyMSeventcallback)(EventRecord *)
 

Definition at line 75 of file osainternal.h.

typedef pascal void(* tyMSmenuscallback)(hdlmenuarray)
 

Definition at line 77 of file osainternal.h.

typedef pascal void(* tyMSstringcallback)(Str255)
 

Definition at line 73 of file osainternal.h.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
frontierstring 
usertalkstring 
scriptingcomponentstring 
menusharingcomponentstring 
windowsharingcomponentstring 

Definition at line 55 of file osainternal.h.

anonymous enum
 

Enumerator:
uppGNEProcInfo 

Definition at line 80 of file osainternal.h.

anonymous enum
 

Enumerator:
uppMSstringcallbackProcInfo 

Definition at line 87 of file osainternal.h.

anonymous enum
 

Enumerator:
uppMSeventcallbackProcInfo 

Definition at line 92 of file osainternal.h.

anonymous enum
 

Enumerator:
uppMSmenuscallbackProcInfo 

Definition at line 97 of file osainternal.h.


Function Documentation

pascal ComponentResult callosafunction Handle  ,
ComponentParameters *  ,
ComponentFunctionUPP 
 

Referenced by menusharingdispatch(), osaDispatch(), and windowsharingdispatch().

void closeosaservers void   ) 
 

Definition at line 5370 of file osacomponent.c.

References disposehandle(), tyservercomponent::hnext, hserverlist, iscurrentapplication(), listunlink(), and nil.

Referenced by closesharedmenus(), osacomponentshutdown(), osacomponentverifyshutdown(), and osaDirtySharedMenus().

Here is the call graph for this function:

void disposecomponentglobals hdlcomponentglobals   ) 
 

Definition at line 835 of file osacomponent.c.

References disposehandle(), disposehashtable(), disposethreadglobals(), hashflushcache(), hashtablestack, hclientlist, listunlink(), longinfinity, and nil.

Referenced by closesharedmenus(), cmpclose(), newcomponentglobals(), and windowsharingdispatch().

Here is the call graph for this function:

boolean getprocessname ProcessSerialNumber  ,
bigstring  ,
boolean
 

Definition at line 6021 of file osacomponent.c.

References long, nil, and noErr.

Referenced by handlerecordableevent(), osacomponentverifyshutdown(), and servingsharedmenus().

boolean newcomponentglobals Component  ,
long  ,
hdlcomponentglobals
 

Definition at line 1007 of file osacomponent.c.

References cmpcando(), cmpclose(), cmpversion(), disposecomponentglobals(), disposehandle(), fl, hclientlist, homezone, tythreadglobals::htable, hthreadglobals, listlink(), newclearhandle(), newhashtable(), newthreadglobals(), noErr, osabackgroundtask(), osaCoerceFromDesc(), osaCoerceToDesc(), osaCompile(), osaCompileExecute(), osaDebug(), osadebugger(), osadefaultactiveproc(), osadefaultactiveUPP, osadefaultcreate(), osadefaultcreateUPP, osadefaultsend(), osadefaultsendUPP, osaDisplay(), osaDispose(), osaDoEvent(), osaDoScript(), osaExecute(), osaExecuteEvent(), osaGetCreateProc(), osaGetResumeDispatchProc(), osaGetScriptInfo(), osaGetSendProc(), osaGetSource(), osaLoad(), osaLoadExecute(), osaMakeContext(), osapartialeventloop(), osaScriptError(), osaScriptingComponentName(), osaSetActiveProc(), osaSetCreateProc(), osaSetDebugProc(), osaSetResumeDispatchProc(), osaSetScriptInfo(), osaSetSendProc(), osaStartRecording(), osaStopRecording(), osaStore(), scriptpopsourcecode(), and scriptpushsourcecode().

Referenced by menusharingdispatch(), osaDispatch(), and windowsharingdispatch().

Here is the call graph for this function:

GNEUPP osainstallpatch hdlcomponentglobals   ) 
 

Definition at line 1645 of file osacomponent.c.

References nil.

Referenced by osabackgroundtask(), osadebugger(), osahandleevent(), osahandlerunscript(), osaRunSharedMenuItem(), and osasendevent().

void osapostclientcallback hdlcomponentglobals   ) 
 

Definition at line 1555 of file osacomponent.c.

References osapushfastcontext().

Referenced by osaRunSharedMenuItem(), sendrecordedtextevent(), and sharedmenuprocessevent().

Here is the call graph for this function:

long osapreclientcallback hdlcomponentglobals   ) 
 

Definition at line 1532 of file osacomponent.c.

References osapopfastcontext().

Referenced by osaRunSharedMenuItem(), sendrecordedtextevent(), and sharedmenuprocessevent().

Here is the call graph for this function:

Component osaregistercomponent OSType  ,
long  ,
ComponentRoutine  ,
short  ,
short 
 

Definition at line 5886 of file osacomponent.c.

References disposehandle(), getcomponentstringhandle(), and nil.

Referenced by initmenusharingcomponent(), initosacomponent(), and initwindowsharingcomponent().

Here is the call graph for this function:

void osaremovepatch hdlcomponentglobals  ,
GNEUPP 
 

Definition at line 1652 of file osacomponent.c.

Referenced by osabackgroundtask(), osadebugger(), osahandleevent(), osahandlerunscript(), osaRunSharedMenuItem(), and osasendevent().

pascal OSAError osaScriptError hdlcomponentglobals  ,
OSType  ,
DescType  ,
AEDesc
 

Definition at line 4221 of file osacomponent.c.

Referenced by newcomponentglobals(), osaDoEvent(), osaDoScript(), and osaRunSharedMenuItem().


Variable Documentation

boolean flosashutdown
 

Definition at line 777 of file osacomponent.c.

Referenced by handlewindoweventcommand(), and osaDirtySharedMenus().

hdlcomponentglobals osaglobals
 

Definition at line 827 of file osacomponent.c.

Referenced by osabackgroundtask(), osacreateevent(), osadebugger(), osahandleevent(), osapopfastcontext(), osapushfastcontext(), osasendevent(), and sharedmenuprocessevent().


Generated on Fri Jun 9 19:01:17 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6