diff --git a/modules/plugin/base/public/npruntime.h b/modules/plugin/base/public/npruntime.h index e210b40ff50..14047c41fee 100644 --- a/modules/plugin/base/public/npruntime.h +++ b/modules/plugin/base/public/npruntime.h @@ -254,7 +254,7 @@ NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name); void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount, NPIdentifier *identifiers); NPIdentifier NPN_GetIntIdentifier(int32_t intid); -bool NPN_IdentifierIsString(NPIdentifier *identifier); +bool NPN_IdentifierIsString(NPIdentifier identifier); /* The NPUTF8 returned from NPN_UTF8FromIdentifier SHOULD be freed. diff --git a/modules/plugin/base/src/ns4xPlugin.cpp b/modules/plugin/base/src/ns4xPlugin.cpp index 5820d83b8ae..7cc1ffd6d3d 100644 --- a/modules/plugin/base/src/ns4xPlugin.cpp +++ b/modules/plugin/base/src/ns4xPlugin.cpp @@ -338,6 +338,9 @@ ns4xPlugin::CheckClassInitialized(void) CALLBACKS.utf8fromidentifier = NewNPN_UTF8FromIdentifierProc(FP2TV(_utf8fromidentifier)); + CALLBACKS.intfromidentifier = + NewNPN_IntFromIdentifierProc(FP2TV(_intfromidentifier)); + CALLBACKS.createobject = NewNPN_CreateObjectProc(FP2TV(_createobject)); @@ -362,6 +365,12 @@ ns4xPlugin::CheckClassInitialized(void) CALLBACKS.removeproperty = NewNPN_RemovePropertyProc(FP2TV(_removeproperty)); + CALLBACKS.hasproperty = + NewNPN_HasPropertyProc(FP2TV(_hasproperty)); + + CALLBACKS.hasmethod = + NewNPN_HasMethodProc(FP2TV(_hasmethod)); + CALLBACKS.releasevariantvalue = NewNPN_ReleaseVariantValueProc(FP2TV(_releasevariantvalue));