Extenden Plugin interface for import/export plugins

This commit is contained in:
michael starke
2016-01-05 10:42:41 +01:00
parent a51ddbbe1b
commit c3074fdc05

View File

@@ -35,5 +35,21 @@ FOUNDATION_EXPORT NSString *const kMPPluginFileExtension;
@end @end
@class KPKTree;
@protocol MPTreeImporting <NSObject>
@required
- (KPKTree *)importTreeAtURL:(NSURL *)url error:(NSError **)error;
@end
@protocol MPTreeExporting <NSObject>
@required
- (NSData *)dataForTree:(KPKTree *)tree error:(NSError **)error;
@end
NS_ASSUME_NONNULL_END NS_ASSUME_NONNULL_END