]> git.sesse.net Git - vlc/blob - projects/macosx/framework/Sources/VLCExtension.m
macosx/framework: Export VLCExtensionsManager and VLCExtension.
[vlc] / projects / macosx / framework / Sources / VLCExtension.m
1 //
2 //  VLCExtension.m
3 //  VLCKit
4 //
5 //  Created by Pierre d'Herbemont on 1/26/10.
6 //  Copyright 2010 __MyCompanyName__. All rights reserved.
7 //
8
9 #import "VLCExtension.h"
10 #import <vlc_extensions.h>
11
12 @implementation VLCExtension
13 - (NSString *)description
14 {
15     return [NSString stringWithFormat:@"VLC Extension %@", [self name]];
16 }
17
18 - (id)initWithInstance:(struct extension_t *)instance
19 {
20     self = [super init];
21     if (!self)
22         return nil;
23     _instance = instance;
24     return self;
25 }
26
27 - (struct extension_t *)instance
28 {
29     return _instance;
30 }
31
32 - (NSString *)name
33 {
34     return [NSString stringWithUTF8String:_instance->psz_name];
35 }
36
37 - (NSString *)title
38 {
39     return [NSString stringWithUTF8String:_instance->psz_title];
40 }
41
42
43 @end