#include "TclXPCOMPrivate.h"
#include "nsAString.h"
#include "nsReadableUtils.h"
Go to the source code of this file.
Functions | |
size_t | GetElementTypeSize (nsXPTType *type) |
void | CleanupParam (void **params, void *param, nsXPTType *type, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, nsXPTParamInfo *paraminfo) |
nsresult | Native2Tcl (void **params, void *param, nsXPTType *type, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, nsXPTParamInfo *paraminfo, Tcl_Obj **result) |
int | Tcl2Native (Tcl_Interp *interp, Tcl_Obj *value, void **params, void *param, nsXPTType *type, int shared, nsIInterfaceInfo *interfaceinfo, PRUint16 methodindex, nsXPTParamInfo *paraminfo) |
Functions for converting between Tcl and XPCOM values.
Definition in file TclXPCOMMarshall.cpp.
|
Determines the size of an XPT type.
Definition at line 55 of file TclXPCOMMarshall.cpp. Referenced by CleanupParam, Native2Tcl, and Tcl2Native. |
|
Frees a parameter, if appropriate for the given type.
Definition at line 128 of file TclXPCOMMarshall.cpp. References CleanupParam, and GetElementTypeSize. |
|
Converts a native value to a new Tcl object whose refcount is 0.
Definition at line 204 of file TclXPCOMMarshall.cpp. References GetElementTypeSize, Native2Tcl, TclXPCOM_NewISupportsObj, TclXPCOM_NewNsIDObj, TclXPCOM_NewPointerObj, TclXPCOM_NewWideIntObj, and TclXPCOM_WideInt. |
|
Converts a Tcl Object to a native value. If an error occurs, an error message will be stored in the interpreter's result and the 'errorCode' variable will be set to the corresponding XPCOM return code.
Definition at line 502 of file TclXPCOMMarshall.cpp. References CloneMemory, GetElementTypeSize, Tcl2Native, TclXPCOM_GetISupportsFromObj, TclXPCOM_GetNsIDFromObj, TclXPCOM_GetPointerFromObj, TclXPCOM_GetWideIntFromObj, TclXPCOM_IsNULL, TclXPCOM_QueryISupportsObj, TclXPCOM_SetError, and TclXPCOM_WideInt. |