Added version attribute to nsI4xScriptablePlugin.idl.

git-svn-id: svn://10.0.0.236/trunk@102647 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
2001-09-10 14:56:04 +00:00
parent 08f0c16feb
commit cdfc1133b9
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 !
// ==============================