VLCKit
VLCLibrary.h
1 /*****************************************************************************
2  * VLCLibrary.h: VLCKit.framework VLCLibrary header
3  *****************************************************************************
4  * Copyright (C) 2007 Pierre d'Herbemont
5  * Copyright (C) 2007-2019 VLC authors and VideoLAN
6  * $Id$
7  *
8  * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
9  * Felix Paul Kühne <fkuehne # videolan.org>
10  *
11  * This program is free software; you can redistribute it and/or modify it
12  * under the terms of the GNU Lesser General Public License as published by
13  * the Free Software Foundation; either version 2.1 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24  *****************************************************************************/
25 
26 #import <Foundation/Foundation.h>
27 
28 NS_ASSUME_NONNULL_BEGIN
29 
31 
41 @interface VLCLibrary : NSObject
42 
48 
54  - (instancetype)initWithOptions:(NSArray *)options;
55 
60 @property (readwrite, nonatomic) BOOL debugLogging;
61 
68 @property (readwrite, nonatomic) int debugLoggingLevel;
69 
78 - (BOOL)setDebugLoggingToFile:(NSString *)filePath;
79 
85 @property (readwrite, nonatomic) id<VLCLibraryLogReceiverProtocol> debugLoggingTarget;
86 
91 @property (readonly, copy) NSString *version;
92 
97 @property (readonly, copy) NSString *compiler;
98 
103 @property (readonly, copy) NSString *changeset;
104 
111 - (void)setHumanReadableName:(NSString *)readableName withHTTPUserAgent:(NSString *)userAgent;
112 
119 - (void)setApplicationIdentifier:(NSString *)identifier withVersion:(NSString *)version andApplicationIconName:(NSString *)icon;
120 
125 @property (nonatomic, assign) void *instance;
126 
127 @end
128 
129 @protocol VLCLibraryLogReceiverProtocol <NSObject>
130 @required
136 - (void)handleMessage:(NSString *)message
137  debugLevel:(int)level;
138 @end
139 
140 NS_ASSUME_NONNULL_END
Definition: VLCLibrary.h:129
void * instance
Definition: VLCLibrary.h:125
NSString * compiler
Definition: VLCLibrary.h:97
Definition: VLCLibrary.h:41
id< VLCLibraryLogReceiverProtocol > debugLoggingTarget
Definition: VLCLibrary.h:85
NSString * version
Definition: VLCLibrary.h:91
BOOL debugLogging
Definition: VLCLibrary.h:60
int debugLoggingLevel
Definition: VLCLibrary.h:68
VLCLibrary * sharedLibrary()
NSString * changeset
Definition: VLCLibrary.h:103