Back to index

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

Go to the source code of this file.


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

Function Documentation

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

Definition at line 725 of file nsJSWinReg.cpp.

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

  if(nsnull == *winRegPrototype) 
    return NS_ERROR_FAILURE;

  if(PR_FALSE == JS_DefineConstDoubles(jscontext, *winRegPrototype, winreg_constants))
    return NS_ERROR_FAILURE;

  return NS_OK;

Here is the call graph for this function:

Here is the caller graph for this function: