From c3074fdc05f612a2a9f993f24e800f1f1dfc7010 Mon Sep 17 00:00:00 2001 From: michael starke Date: Tue, 5 Jan 2016 10:42:41 +0100 Subject: [PATCH] Extenden Plugin interface for import/export plugins --- MacPass/MPPlugin.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/MacPass/MPPlugin.h b/MacPass/MPPlugin.h index 4afbee61..fc4eddf8 100644 --- a/MacPass/MPPlugin.h +++ b/MacPass/MPPlugin.h @@ -35,5 +35,21 @@ FOUNDATION_EXPORT NSString *const kMPPluginFileExtension; @end +@class KPKTree; + +@protocol MPTreeImporting + +@required +- (KPKTree *)importTreeAtURL:(NSURL *)url error:(NSError **)error; + +@end + +@protocol MPTreeExporting + +@required +- (NSData *)dataForTree:(KPKTree *)tree error:(NSError **)error; + +@end + NS_ASSUME_NONNULL_END \ No newline at end of file