[vlc-commits] npapi: Replicate activex's getVersionInfo

Hugo Beauzée-Luyssen git at videolan.org
Tue Apr 21 10:16:26 CEST 2015


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Apr 16 13:20:40 2015 +0200| [0c185df154f10aeedd5b1e3b740a5b85fcb2130a] | committer: Hugo Beauzée-Luyssen

npapi: Replicate activex's getVersionInfo

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=0c185df154f10aeedd5b1e3b740a5b85fcb2130a
---

 npapi/npruntime/npolibvlc.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/npapi/npruntime/npolibvlc.cpp b/npapi/npruntime/npolibvlc.cpp
index 3691389..494c4f0 100644
--- a/npapi/npruntime/npolibvlc.cpp
+++ b/npapi/npruntime/npolibvlc.cpp
@@ -141,6 +141,7 @@ LibvlcRootNPObject::getProperty(int index, npapi::OutVariant &result)
 const NPUTF8 * const LibvlcRootNPObject::methodNames[] =
 {
     "versionInfo",
+    "getVersionInfo",
     "addEventListener",
     "removeEventListener",
 };
@@ -149,6 +150,7 @@ COUNTNAMES(LibvlcRootNPObject,methodCount,methodNames);
 enum LibvlcRootNPObjectMethodIds
 {
     ID_root_versionInfo,
+    ID_root_getVersionInfo,
     ID_root_addeventlistener,
     ID_root_removeeventlistener,
 };
@@ -163,6 +165,7 @@ RuntimeNPObject::InvokeResult LibvlcRootNPObject::invoke(int index,
     switch( index )
     {
     case ID_root_versionInfo:
+    case ID_root_getVersionInfo:
         if( 0 != argCount )
             return INVOKERESULT_NO_SUCH_METHOD;
         result = libvlc_get_version();



More information about the vlc-commits mailing list