Bug 121526 - Need to expose the security info pointer from the nsIXPConnectWrappedNative interface. r=jst, sr=jband

This commit is contained in:
dbradley%netscape.com 2002-02-15 03:11:15 +00:00
parent b898d4522b
commit 90a78e1012
2 changed files with 14 additions and 0 deletions

View File

@ -56,6 +56,7 @@
[ptr] native JSValPtr(jsval);
native JSVal(jsval);
native JSID(jsid);
[ptr] native voidPtrPtr(void*);
/***************************************************************************/
@ -156,6 +157,12 @@ interface nsIXPConnectWrappedNative : nsIXPConnectJSObjectHolder
void debugDump(in short depth);
void refreshPrototype();
/*
* This returns a pointer into the instance and care should be taken
* to make sure the pointer is not kept past the life time of the
* object it points into.
*/
voidPtrPtr GetSecurityInfoAddress();
};
[uuid(BED52030-BCA6-11d2-BA79-00805F8A5DD7)]

View File

@ -2308,6 +2308,13 @@ NS_IMETHODIMP XPCWrappedNative::RefreshPrototype()
return NS_OK;
}
NS_IMETHODIMP XPCWrappedNative::GetSecurityInfoAddress(void*** securityInfoAddrPtr)
{
NS_ENSURE_ARG_POINTER(securityInfoAddrPtr);
*securityInfoAddrPtr = GetSecurityInfoAddr();
return NS_OK;
}
/* void debugDump (in short depth); */
NS_IMETHODIMP XPCWrappedNative::DebugDump(PRInt16 depth)
{