Commit 24338ffb authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Export libvlc version.

parent 545400d7
......@@ -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".
*/
@property (readonly) NSString * version;
@end
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment