Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsProperties.cpp File Reference
#include "nsProperties.h"
#include "nsString.h"
#include "nsCRT.h"

Go to the source code of this file.


struct  GetKeysEnumData


PR_CALLBACK PLDHashOperator GetKeysEnumerate (const char *key, nsISupports *data, void *arg)

Class Documentation

struct GetKeysEnumData

Definition at line 100 of file nsProperties.cpp.

Class Members
char ** keys
PRUint32 next
nsresult res

Function Documentation

PR_CALLBACK PLDHashOperator GetKeysEnumerate ( const char *  key,
nsISupports *  data,
void arg 

Definition at line 108 of file nsProperties.cpp.

    GetKeysEnumData *gkedp = (GetKeysEnumData *)arg;
    gkedp->keys[gkedp->next] = nsCRT::strdup(key);

    if (!gkedp->keys[gkedp->next]) {
        gkedp->res = NS_ERROR_OUT_OF_MEMORY;
        return PL_DHASH_STOP;

    return PL_DHASH_NEXT;