Added |do_GetInterface| (not turned on yet). This will be turned on when we add a file for the implementation. r=tbogard

This commit is contained in:
scc%netscape.com 1999-11-22 23:09:05 +00:00
parent d30947f33e
commit 586af1ee44

View File

@ -45,4 +45,39 @@ interface nsIInterfaceRequestor : nsISupports
*/
void getInterface(in nsIIDRef uuid,
[iid_is(uuid),retval] out nsQIResult result);
};
};
%{C++
#if 0
#ifndef nsCOMPtr_h___
#include "nsCOMPtr.h"
#endif
class nsGetInterface : public nsCOMPtr_helper
{
public:
nsGetInterface( nsISupports* aSource, nsresult* error )
: mSource(aSource),
mErrorPtr(error)
{
// nothing else to do here
}
virtual nsresult operator()( const nsIID&, void** ) const;
private:
nsCOMPtr<nsISupports> mSource;
nsresult* mErrorPtr;
};
inline
const nsGetInterface
do_GetInterface( nsISupports* aSource, nsresult* error = 0 )
{
return nsGetInterface(aSource, error);
}
#endif
%}