Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsNativeAppSupportDefault.cpp File Reference
#include "nsNativeAppSupportBase.h"

Go to the source code of this file.

Functions

nsresult NS_CreateNativeAppSupport (nsINativeAppSupport **aResult)
 Create the nativeappsupport implementation.

Function Documentation

Create the nativeappsupport implementation.

Note:
XPCOMInit has not happened yet.

Definition at line 40 of file nsNativeAppSupportDefault.cpp.

{
  nsNativeAppSupportBase* native = new nsNativeAppSupportBase();
  if (!native) return NS_ERROR_OUT_OF_MEMORY;

  *aResult = native;
  NS_ADDREF( *aResult );

  return NS_OK;
}

Here is the call graph for this function: