[vlc-devel] commit: macosx/framework: Export libvlc version. (Pierre d'Herbemont )

git version control git at videolan.org
Fri Dec 18 12:21:07 CET 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Dec 18 12:10:56 2009 +0100| [24338ffb49116b5d10799ae794dc5debf5d6ec73] | committer: Pierre d'Herbemont 

macosx/framework: Export libvlc version.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=24338ffb49116b5d10799ae794dc5debf5d6ec73
---

 .../macosx/framework/Headers/Public/VLCLibrary.h   |    9 +++++++++
 projects/macosx/framework/Sources/VLCLibrary.m     |    5 +++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/projects/macosx/framework/Headers/Public/VLCLibrary.h b/projects/macosx/framework/Headers/Public/VLCLibrary.h
index 620f6ae..0f32162 100644
--- a/projects/macosx/framework/Headers/Public/VLCLibrary.h
+++ b/projects/macosx/framework/Headers/Public/VLCLibrary.h
@@ -58,4 +58,13 @@
  * \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".
+ */
+
+ at property (readonly) NSString * version;
+
 @end
diff --git a/projects/macosx/framework/Sources/VLCLibrary.m b/projects/macosx/framework/Sources/VLCLibrary.m
index eb572cf..e3d6602 100644
--- a/projects/macosx/framework/Sources/VLCLibrary.m
+++ b/projects/macosx/framework/Sources/VLCLibrary.m
@@ -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 ) 




More information about the vlc-devel mailing list