Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsInterfaceRequestorAgg.h File Reference
#include "nsIInterfaceRequestor.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NS_COM nsresult NS_NewInterfaceRequestorAggregation (nsIInterfaceRequestor *aFirst, nsIInterfaceRequestor *aSecond, nsIInterfaceRequestor **aResult)
 This function returns an instance of nsIInterfaceRequestor that aggregates two nsIInterfaceRequestor instances.

Function Documentation

This function returns an instance of nsIInterfaceRequestor that aggregates two nsIInterfaceRequestor instances.

It's GetInterface method queries aFirst for the requested interface and will query aSecond only if aFirst failed to supply the requested interface. Both aFirst and aSecond may be null.

Definition at line 69 of file nsInterfaceRequestorAgg.cpp.

{
  *aResult = new nsInterfaceRequestorAgg(aFirst, aSecond);
  if (!aResult)
    return NS_ERROR_OUT_OF_MEMORY;
  NS_ADDREF(*aResult);
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: