Back to index

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

Go to the source code of this file.

Functions

PRInt32 InitFileSpecObjectPrototype (JSContext *jscontext, JSObject *global, JSObject **fileSpecObjectPrototype)

Function Documentation

PRInt32 InitFileSpecObjectPrototype ( JSContext jscontext,
JSObject global,
JSObject **  fileSpecObjectPrototype 
)

Definition at line 148 of file nsJSFileSpecObj.cpp.

{
  *fileSpecObjectPrototype  = JS_InitClass( jscontext,         // context
                                            global,            // global object
                                            nsnull,            // parent proto 
                                            &FileSpecObjectClass, // JSClass
                                            nsnull,            // JSNative ctor
                                            0,                 // ctor args
                                            nsnull,            // proto props
                                            fileSpecObjMethods,// proto funcs
                                            nsnull,            // ctor props (static)
                                            nsnull);           // ctor funcs (static)

  if (nsnull == *fileSpecObjectPrototype) 
  {
      return NS_ERROR_FAILURE;
  }

 
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: