#include "TclXPCOMPrivate.h"
Go to the source code of this file.
Compounds | |
struct | CurrentStubInfo |
Defines | |
#define | STUBS_BUFFERSIZE 16 |
Typedefs | |
typedef CurrentStubInfo | CurrentStubInfo |
Functions | |
void | TclXPCOM_GetCurrentComponentContext (nsIInterfaceInfo **interfaceinfo, nsISupports **isupports) |
int | TclXPCOM_SetReturnCode (nsresult res) |
void | CleanupOutParameters (void **params, nsXPTParamInfo *paraminfos, PRUint8 paramcount, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex) |
Tcl_Obj * | NewOutParam (int stubid, int paramindex) |
void | CleanupTclOutVariables (int stubid, Tcl_Interp *interp, nsXPTParamInfo *paraminfos, PRUint8 paramcount, PRUint16 *tclparams) |
void | AddObjErrorInfoForBinding (Tcl_Interp *interp, nsISupports *isupports, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, Tcl_Obj *script) |
nsresult | TclXPCOM_CallMethod (Tcl_Interp *interp, nsXPTCMiniVariant *variants, nsISupports *isupports, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, Tcl_Obj *script) |
Variables | |
Tcl_ThreadDataKey | currentStubKey |
Contains functions for stub invocation on Tcl components.
Definition in file TclXPCOMStubs.cpp.
|
Definition at line 43 of file TclXPCOMStubs.cpp. Referenced by TclXPCOM_CallMethod. |
|
Structure holding the current Tcl component stub being invoked in a particular thread. If no stub is being invoked, 'currentstub' and 'interfaceinfo' will be NULL. |
|
Retrieves the Tcl Component stub that has a binding being evaluated in this thread. If no component binding is being evaluated, 'isupports' and 'interfaceinfo' will be set to NULL.
Definition at line 70 of file TclXPCOMStubs.cpp. References CurrentStubInfo::currentstub, currentStubKey, and CurrentStubInfo::interfaceinfo. |
|
Sets the return code for the current stub invocation.
Definition at line 92 of file TclXPCOMStubs.cpp. References CurrentStubInfo::currentstub, currentStubKey, and CurrentStubInfo::returnCode. |
|
Performs cleanup on all the out and in/out parameters for a given method.
Definition at line 116 of file TclXPCOMStubs.cpp. References CleanupParam. Referenced by TclXPCOM_CallMethod. |
|
Produces a unique Tcl out variable name corresponding to the given parameter index.
Definition at line 153 of file TclXPCOMStubs.cpp. Referenced by CleanupTclOutVariables, and TclXPCOM_CallMethod. |
|
Cleans up all the Tcl out variables associated with a stub invocation.
Definition at line 169 of file TclXPCOMStubs.cpp. References NewOutParam, and PARAM_IS_SKIPPED. Referenced by TclXPCOM_CallMethod. |
|
Appends a standard error message for a Tcl component binding to the given interpreter.
Definition at line 203 of file TclXPCOMStubs.cpp. References TclXPCOM_NewISupportsObj. Referenced by TclXPCOM_CallMethod. |
|
Evaluates a Tcl Component binding for a given method.
Definition at line 260 of file TclXPCOMStubs.cpp. References AddObjErrorInfoForBinding, CleanupOutParameters, CleanupTclOutVariables, CurrentStubInfo::currentstub, currentStubKey, GetMethodInfo, CurrentStubInfo::interfaceinfo, Native2Tcl, CurrentStubInfo::nestlevel, NewOutParam, PARAM_INDEX_MASK, PARAM_IS_RETVAL, PARAM_IS_SHARED_OUT, PARAM_IS_SKIPPED, MethodInfo::paramcount, MethodInfo::paraminfos, CurrentStubInfo::returnCode, STUBS_BUFFERSIZE, Tcl2Native, MethodInfo::tclparams, TclXPCOM_BackgroundError, and TclXPCOM_GetErrorCode. Referenced by TclXPCOMStub::CallMethod, and TclXPCOMStub::QueryInterface. |
|
Key for retrieving the CurrentStubInfo data for a particular thread. Definition at line 61 of file TclXPCOMStubs.cpp. Referenced by TclXPCOM_CallMethod, TclXPCOM_GetCurrentComponentContext, and TclXPCOM_SetReturnCode. |