+
+ /*
+ * Setup - Ensure a sane environment
+ */
+ if( pFuncs == NULL ||
+ pFuncs->size < sizeof(NPNetscapeFuncs) )
+ return NPERR_INVALID_FUNCTABLE_ERROR;
+
+ if(HIBYTE(pFuncs->version) > NP_VERSION_MAJOR)
+ return NPERR_INCOMPATIBLE_VERSION_ERROR;
+
+ /*
+ * Main body:
+ * Tell the browser about the API functions we implement
+ */
+ pFuncs->newp = NPP_New;
+ pFuncs->destroy = NPP_Destroy;
+ pFuncs->getvalue = NPP_GetValue;
+