]> git.sesse.net Git - vlc/commitdiff
macosx/framework: Export libvlc version.
authorPierre d'Herbemont <pdherbemont@free.fr>
Fri, 18 Dec 2009 11:10:56 +0000 (12:10 +0100)
committerPierre d'Herbemont <pdherbemont@free.fr>
Fri, 18 Dec 2009 11:10:56 +0000 (12:10 +0100)
projects/macosx/framework/Headers/Public/VLCLibrary.h
projects/macosx/framework/Sources/VLCLibrary.m

index 620f6ae4e9b7c3db83019c75ca11fcaf5816b495..0f321622140172072424633439a1090c11694e1c 100644 (file)
  * \return The library's shared audio instance.
  */
 @property (readonly) VLCAudio * audio;
+
+
+/**
+ * Returns the library's version
+ * \return The library version example "0.9.0-git Grishenko".
+ */
+
+@property (readonly) NSString * version;
+
 @end
index eb572cfb5bbef41099d2fcd3d4acaed11dc8e151..e3d6602df0caa2be1aa96f60667117c7deefd601 100644 (file)
@@ -89,6 +89,11 @@ void __catch_exception( void * e, const char * function, const char * file, int
     return self;
 }
 
+- (NSString *)version 
+{
+    return [NSString stringWithUTF8String:libvlc_get_version()];
+}
+
 - (void)dealloc 
 {
     if( instance )