[vlc-devel] commit: macosx/framework: Export -[VLCLibrary changeset]. (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:20:45 2009 +0100| [5e75b1fb8888aec3377d5e7e247e0b5fad70fb93] | committer: Pierre d'Herbemont
macosx/framework: Export -[VLCLibrary changeset].
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5e75b1fb8888aec3377d5e7e247e0b5fad70fb93
---
.../macosx/framework/Headers/Public/VLCLibrary.h | 7 +++++++
projects/macosx/framework/Sources/VLCLibrary.m | 5 +++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/projects/macosx/framework/Headers/Public/VLCLibrary.h b/projects/macosx/framework/Headers/Public/VLCLibrary.h
index 0f32162..82cadad 100644
--- a/projects/macosx/framework/Headers/Public/VLCLibrary.h
+++ b/projects/macosx/framework/Headers/Public/VLCLibrary.h
@@ -67,4 +67,11 @@
@property (readonly) NSString * version;
+/**
+ * Returns the library's changeset
+ * \return The library version example "adfee99".
+ */
+
+ at property (readonly) NSString * changeset;
+
@end
diff --git a/projects/macosx/framework/Sources/VLCLibrary.m b/projects/macosx/framework/Sources/VLCLibrary.m
index e3d6602..b4c11c7 100644
--- a/projects/macosx/framework/Sources/VLCLibrary.m
+++ b/projects/macosx/framework/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 )
More information about the vlc-devel
mailing list