[vlmc-devel] LibVLCpp: Add binding to libvlc_event_type_name

Hugo Beauzée-Luyssen git at videolan.org
Sun Sep 23 16:31:35 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sat Sep 22 23:41:11 2012 +0300| [911f4db7af7dd67c0b619036d35052fc8ed30734] | committer: Hugo Beauzée-Luyssen

LibVLCpp: Add binding to libvlc_event_type_name

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=911f4db7af7dd67c0b619036d35052fc8ed30734
---

 src/LibVLCpp/VLCpp.hpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/LibVLCpp/VLCpp.hpp b/src/LibVLCpp/VLCpp.hpp
index 1d19e61..140df8d 100644
--- a/src/LibVLCpp/VLCpp.hpp
+++ b/src/LibVLCpp/VLCpp.hpp
@@ -25,6 +25,7 @@
 
 #include <cassert>
 #include <stdlib.h>
+#include <vlc/libvlc.h>
 
 namespace LibVLCpp
 {
@@ -45,6 +46,10 @@ namespace LibVLCpp
 
             T*                  m_internalPtr;
     };
+    inline const char* eventName( libvlc_event_type_t event )
+    {
+        return libvlc_event_type_name( event );
+    }
 }
 
 #endif // VLCPP_H



More information about the Vlmc-devel mailing list