Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsStaticComponentLoader.cpp File Reference
#include "nsXPCOMPrivate.h"
#include "nsIComponentLoader.h"
#include "nsIModule.h"
#include "nsVoidArray.h"
#include "pldhash.h"
#include "prlog.h"

Go to the source code of this file.


struct  StaticModuleInfo
class  nsStaticComponentLoader


#define LOG(args)   PR_LOG(sLog, PR_LOG_DEBUG, args)


 info_ClearEntry (PLDHashTable *table, PLDHashEntryHdr *entry)
 info_InitEntry (PLDHashTable *table, PLDHashEntryHdr *entry, const void *key)
nsresult NewStaticComponentLoader (nsStaticModuleInfo const *aStaticModules, PRUint32 aStaticModuleCount, nsIComponentLoader **retval)


const char staticComponentType []

Define Documentation

#define LOG (   args)    PR_LOG(sLog, PR_LOG_DEBUG, args)

Definition at line 52 of file nsStaticComponentLoader.cpp.

Function Documentation

info_ClearEntry ( PLDHashTable table,
PLDHashEntryHdr entry 

Definition at line 97 of file nsStaticComponentLoader.cpp.

    StaticModuleInfo *info = NS_STATIC_CAST(StaticModuleInfo *, entry);
    info->module = 0;
info_InitEntry ( PLDHashTable table,
PLDHashEntryHdr entry,
const void key 

Definition at line 105 of file nsStaticComponentLoader.cpp.

    // Construct so that our nsCOMPtr is zeroed, etc.
    new (NS_STATIC_CAST(void *, entry)) StaticModuleInfo();
    return PR_TRUE;
nsresult NewStaticComponentLoader ( nsStaticModuleInfo const aStaticModules,
PRUint32  aStaticModuleCount,
nsIComponentLoader **  retval 

Definition at line 296 of file nsStaticComponentLoader.cpp.

    nsCOMPtr<nsStaticComponentLoader> lthis = new nsStaticComponentLoader();
    if (!lthis)
        return NS_ERROR_OUT_OF_MEMORY;

    nsresult rv = ((nsStaticComponentLoader*) lthis)->
        Init(aStaticModules, aStaticModuleCount);

    if (NS_FAILED(rv))
        return rv;

    NS_ADDREF(*retval = lthis);
    return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

Definition at line 132 of file nsComponentManager.cpp.