Added version attribute to nsI4xScriptablePlugin.idl.

This commit is contained in:
beard@netscape.com
2001-09-10 14:56:04 +00:00
parent 7783886ea2
commit cfccf28009
5 changed files with 20 additions and 2 deletions

View File

@@ -116,6 +116,15 @@ void CPlugin::clear()
#endif
}
void CPlugin::getVersion(char* *aVersion)
{
const char *ua = NPN_UserAgent(m_pNPInstance);
char*& version = *aVersion;
version = (char*)NPN_MemAlloc(1 + strlen(ua));
if (version)
strcpy(version, ua);
}
// ==============================
// ! Scriptability related code !
// ==============================