Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsIInterfaceRequestorUtils.h File Reference
#include "nsCOMPtr.h"

Go to the source code of this file.


protocol  NS_COM_GLUE


template<class T , class DestinationType >
nsresult CallGetInterface (T *aSource, DestinationType **aDestination)
const nsGetInterface do_GetInterface (nsISupports *aSource, nsresult *error=0)

Function Documentation

template<class T , class DestinationType >
nsresult CallGetInterface ( T aSource,
DestinationType **  aDestination 
) [inline]

Definition at line 49 of file nsIInterfaceRequestorUtils.h.

    NS_PRECONDITION(aSource, "null parameter");
    NS_PRECONDITION(aDestination, "null parameter");

    return aSource->GetInterface(NS_GET_IID(DestinationType),
                                 NS_REINTERPRET_CAST(void**, aDestination));

Here is the caller graph for this function:

const nsGetInterface do_GetInterface ( nsISupports *  aSource,
nsresult error = 0 
) [inline]

Definition at line 77 of file nsIInterfaceRequestorUtils.h.

    return nsGetInterface(aSource, error);