Back to index

lightning-sunbird  0.9+nobinonly
nsJSWinProfile.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


PRInt32 InitWinProfilePrototype (JSContext *jscontext, JSObject *global, JSObject **winRegPrototype)

Function Documentation

PRInt32 InitWinProfilePrototype ( JSContext jscontext,
JSObject global,
JSObject **  winRegPrototype 

Definition at line 194 of file nsJSWinProfile.cpp.

  *winProfilePrototype = JS_InitClass( jscontext,          // context
                                       global,             // global object
                                       nsnull,             // parent proto 
                                       &WinProfileClass,   // JSClass
                                       nsnull,             // JSNative ctor
                                       0,                  // ctor args
                                       nsnull,             // proto props
                                       nsnull,             // proto funcs
                                       nsnull,             // ctor props (static)
                                       WinProfileMethods); // ctor funcs (static)

  if(nsnull == *winProfilePrototype) 
    return NS_ERROR_FAILURE;

  if(PR_FALSE == JS_DefineConstDoubles(jscontext, *winProfilePrototype, winprofile_constants))
    return NS_ERROR_FAILURE;

  return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function: