Back to index

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

Go to the source code of this file.

Functions

nsresult NS_NewRDFFileSystemDataSource (nsIRDFDataSource **result)

Function Documentation

Definition at line 1114 of file nsFileSystemDataSource.cpp.

{
    if (!result)
        return NS_ERROR_NULL_POINTER;

    // only one file system data source
    if (nsnull == gFileSystemDataSource)
    {
        if ((gFileSystemDataSource = new FileSystemDataSource()) == nsnull)
        {
            return NS_ERROR_OUT_OF_MEMORY;
        }
    }
    NS_ADDREF(gFileSystemDataSource);
    *result = gFileSystemDataSource;
    return NS_OK;
}

Here is the call graph for this function: