Main Page   Compound List   File List   Compound Members   File Members  

TclXPCOMInvoke.cpp File Reference

#include "TclXPCOMPrivate.h"
#include "nsString.h"

Go to the source code of this file.




void PrepareVariant (nsXPTCVariant *param, nsXPTParamInfo *paraminfo)
int TclXPCOM_Invoke (Tcl_Interp *interp, Tcl_Obj *CONST objv[], nsISupports *isupports, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex)

Detailed Description

Contains functions for invoking methods on native XPCOM components.

Definition in file TclXPCOMInvoke.cpp.

Define Documentation


Definition at line 45 of file TclXPCOMInvoke.cpp.

Referenced by TclXPCOM_Invoke.

Function Documentation

void PrepareVariant nsXPTCVariant *    param,
nsXPTParamInfo *    paraminfo

Prepares a single parameter to hold a value.

param  (in) parameter to prepare
paraminfo  (in) info of parameter to prepare

Definition at line 52 of file TclXPCOMInvoke.cpp.

Referenced by TclXPCOM_Invoke.

int TclXPCOM_Invoke Tcl_Interp *    interp,
Tcl_Obj *CONST    objv[],
nsISupports *    isupports,
nsIInterfaceInfo *    interfaceinfo,
PRUint16    methodindex

Invokes a method on a native XPCOM component.

Return values:
TCL_OK  - if successful
TCL_ERROR  - if an error occurred
interp  (in) current interpreter
objv  (in) array of tcl argument objects
isupports  (in) interface pointer of component being invoked
interfaceinfo  (in) inferfaceinfo of component being invoked
methodindex  (in) index into interface of method

Definition at line 101 of file TclXPCOMInvoke.cpp.

References CleanupParam, GetMethodInfo, INVOKE_BUFFERSIZE, Native2Tcl, PARAM_INDEX_MASK, PARAM_IS_SHARED_IN, PARAM_IS_SKIPPED, MethodInfo::paramcount, MethodInfo::paraminfos, PrepareVariant, Tcl2Native, MethodInfo::tclparams, TCLXPCOM_LASTRESULTVARNAME, and TclXPCOM_SetError.

Generated on Fri Jun 14 23:25:51 2002 for TclXPCOM by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002