Selaa lähdekoodia

macosx/framework: Export -[VLCLibrary changeset].

Pierre d'Herbemont 15 vuotta sitten
vanhempi
commit
3e95bdbb12
2 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  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 )