Commit 068f0943 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Add read-only target

parent ee79bd9d
This diff is collapsed.
......@@ -34,6 +34,45 @@
#import <CommonCrypto/CommonDigest.h> // for MD5
#import "MLThumbnailerQueue.h"
#ifdef MLKIT_READONLY_TARGET
#warning MLKIT_READONLY_TARGET
@implementation MLFileParserQueue
+ (MLFileParserQueue *)sharedFileParserQueue
{
static MLFileParserQueue *shared = nil;
if (!shared) {
shared = [[MLFileParserQueue alloc] init];
}
return shared;
}
- (void)addFile:(MLFile *)file
{
}
- (void)setHighPriorityForFile:(MLFile *)file
{
}
- (void)setDefaultPriorityForFile:(MLFile *)file
{
}
- (void)stop
{
}
- (void)resume
{
}
@end
#else
@interface MLFileParserQueue ()
{
NSDictionary *_fileDescriptionToOperation;
......@@ -361,3 +400,5 @@ static inline NSString *hashFromFile(MLFile *file)
}
@end
#endif
......@@ -30,6 +30,43 @@
#import "MLMediaLibrary.h"
#import "MLFileParserQueue.h"
#ifdef MLKIT_READONLY_TARGET
@implementation MLThumbnailerQueue
+ (MLThumbnailerQueue *)sharedThumbnailerQueue
{
static MLThumbnailerQueue *shared = nil;
if (!shared) {
shared = [[MLThumbnailerQueue alloc] init];
}
return shared;
}
- (void)addFile:(MLFile *)file
{
}
- (void)setHighPriorityForFile:(MLFile *)file
{
}
- (void)setDefaultPriorityForFile:(MLFile *)file
{
}
- (void)stop
{
}
- (void)resume
{
}
@end
#else
@interface ThumbnailOperation : NSOperation <VLCMediaThumbnailerDelegate>
{
MLFile *_file;
......@@ -200,3 +237,5 @@ static inline NSString *hashFromFile(MLFile *file)
}
@end
#endif
......@@ -26,6 +26,34 @@
#import "MLTitleDecrapifier.h"
#ifdef MLKIT_READONLY_TARGET
@implementation MLTitleDecrapifier
+ (NSString *)decrapify:(NSString *)string;
{
return @"";
}
+ (BOOL)isTVShowEpisodeTitle:(NSString *)string
{
return NO;
}
+ (NSDictionary *)tvShowEpisodeInfoFromString:(NSString *)string
{
return @{};
}
+ (NSDictionary *)audioContentInfoFromFile:(MLFile *)file
{
return @{};
}
@end
#else
@implementation MLTitleDecrapifier
+ (NSString *)decrapify:(NSString *)string
{
......@@ -241,3 +269,5 @@ returnThings:
}
@end
#endif
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