mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 12:52:21 +00:00
Extenden Plugin interface for import/export plugins
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user