mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
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:
parent
d30947f33e
commit
586af1ee44
@ -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
|
||||
|
||||
%}
|
Loading…
Reference in New Issue
Block a user