浏览代码

macosx/framework: Export -[VLCLibrary changeset].

Pierre d'Herbemont 15 年之前
父节点
当前提交
3e95bdbb12
共有 2 个文件被更改,包括 12 次插入0 次删除
  1. 7 0
      Headers/Public/VLCLibrary.h
  2. 5 0
      Sources/VLCLibrary.m

+ 7 - 0
Headers/Public/VLCLibrary.h

@@ -67,4 +67,11 @@
 
 @property (readonly) NSString * version;
 
+/**
+ * Returns the library's changeset
+ * \return The library version example "adfee99".
+ */
+
+@property (readonly) NSString * changeset;
+
 @end

+ 5 - 0
Sources/VLCLibrary.m

@@ -94,6 +94,11 @@ void __catch_exception( void * e, const char * function, const char * file, int
     return [NSString stringWithUTF8String:libvlc_get_version()];
 }
 
+- (NSString *)changeset 
+{
+    return [NSString stringWithUTF8String:libvlc_get_changeset()];
+}
+
 - (void)dealloc 
 {
     if( instance )