IOS-1475 Re-add PEPSync. IOS-1475_exp_dirk_001
authorDirk Zimmermann <dz@pep.security>
Fri, 15 Mar 2019 16:14:50 +0100
branchIOS-1475_exp_dirk_001
changeset 896c710106f0758
parent 895 fa2cf4ab7725
child 897 a1c583ffca0e
IOS-1475 Re-add PEPSync.
pEpObjCAdapter.xcodeproj/project.pbxproj
pEpObjCAdapter/PEPSync.h
     1.1 --- a/pEpObjCAdapter.xcodeproj/project.pbxproj	Fri Mar 15 16:14:50 2019 +0100
     1.2 +++ b/pEpObjCAdapter.xcodeproj/project.pbxproj	Fri Mar 15 16:14:50 2019 +0100
     1.3 @@ -19,6 +19,7 @@
     1.4  		432FA2D81C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_sec.asc in Resources */ = {isa = PBXBuildFile; fileRef = 432FA2D61C884FF500DDF874 /* meATdontcare_E3BFBCA9248FC681_sec.asc */; };
     1.5  		4336853F203D5CE60069A451 /* PEPTestUtils.m in Sources */ = {isa = PBXBuildFile; fileRef = 15D3D77C2010DDC500A0DA20 /* PEPTestUtils.m */; };
     1.6  		434226811D4F60000083ED79 /* PepTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 434226801D4F60000083ED79 /* PepTests.m */; };
     1.7 +		4356FB8E223BE22F0059EFB5 /* PEPSync.m in Sources */ = {isa = PBXBuildFile; fileRef = 4356FB8D223BE22F0059EFB5 /* PEPSync.m */; };
     1.8  		435C0C8C22291FFB0025C6B5 /* PEPSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 15206CC51F8E078B003FF880 /* PEPSession.h */; settings = {ATTRIBUTES = (Public, ); }; };
     1.9  		435C0C9922292C080025C6B5 /* PEPMessage.h in Headers */ = {isa = PBXBuildFile; fileRef = 435796E11FB5E51A00395A9E /* PEPMessage.h */; settings = {ATTRIBUTES = (Public, ); }; };
    1.10  		435C0CA222292E7C0025C6B5 /* PEPTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = 435C0CA022292E7C0025C6B5 /* PEPTypes.h */; settings = {ATTRIBUTES = (Public, ); }; };
    1.11 @@ -158,6 +159,8 @@
    1.12  		434ED6D5207E27B8000A7590 /* PEPAutoPointer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPAutoPointer.m; sourceTree = "<group>"; };
    1.13  		435665CA2080A6CB00EC5B10 /* NSNumber+PEPRating.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSNumber+PEPRating.h"; sourceTree = "<group>"; };
    1.14  		435665CB2080A6CB00EC5B10 /* NSNumber+PEPRating.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "NSNumber+PEPRating.m"; sourceTree = "<group>"; };
    1.15 +		4356FB8D223BE22F0059EFB5 /* PEPSync.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PEPSync.m; sourceTree = "<group>"; };
    1.16 +		4356FB8F223BE2390059EFB5 /* PEPSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PEPSync.h; sourceTree = "<group>"; };
    1.17  		435796E11FB5E51A00395A9E /* PEPMessage.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPMessage.h; sourceTree = "<group>"; };
    1.18  		435796E21FB5E51A00395A9E /* PEPMessage.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPMessage.m; sourceTree = "<group>"; };
    1.19  		435C0CA022292E7C0025C6B5 /* PEPTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = PEPTypes.h; path = pEpObjCAdapterFramework/PEPTypes.h; sourceTree = SOURCE_ROOT; };
    1.20 @@ -296,6 +299,8 @@
    1.21  		43209B251ECC2ACD007E7E2E /* pEpObjCAdapter */ = {
    1.22  			isa = PBXGroup;
    1.23  			children = (
    1.24 +				4356FB8F223BE2390059EFB5 /* PEPSync.h */,
    1.25 +				4356FB8D223BE22F0059EFB5 /* PEPSync.m */,
    1.26  				43209B261ECC2ACD007E7E2E /* NSArray+Extension.h */,
    1.27  				43209B271ECC2ACD007E7E2E /* NSArray+Extension.m */,
    1.28  				43209B281ECC2ACD007E7E2E /* PEPCSVScanner.h */,
    1.29 @@ -594,6 +599,7 @@
    1.30  				152A9C472010F50400F962ED /* PEPSessionTest.m in Sources */,
    1.31  				434226811D4F60000083ED79 /* PepTests.m in Sources */,
    1.32  				4336853F203D5CE60069A451 /* PEPTestUtils.m in Sources */,
    1.33 +				4356FB8E223BE22F0059EFB5 /* PEPSync.m in Sources */,
    1.34  				15D3D761200F61BB00A0DA20 /* PEPSessionProviderTest.m in Sources */,
    1.35  			);
    1.36  			runOnlyForDeploymentPostprocessing = 0;
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/pEpObjCAdapter/PEPSync.h	Fri Mar 15 16:14:50 2019 +0100
     2.3 @@ -0,0 +1,43 @@
     2.4 +//
     2.5 +//  PEPSync.h
     2.6 +//  pEpObjCAdapter
     2.7 +//
     2.8 +//  Created by Dirk Zimmermann on 04.10.18.
     2.9 +//  Copyright © 2018 p≡p. All rights reserved.
    2.10 +//
    2.11 +
    2.12 +#import <Foundation/Foundation.h>
    2.13 +
    2.14 +#import "pEpEngine.h"
    2.15 +
    2.16 +#import "PEPSendMessageDelegate.h"
    2.17 +#import "PEPNotifyHandshakeDelegate.h"
    2.18 +
    2.19 +@class PEPSyncSendMessageDelegate;
    2.20 +
    2.21 +/**
    2.22 + @see libpEpAdapter: Adapter.{cc|hh}
    2.23 + @see sync_codec.h
    2.24 + */
    2.25 +@interface PEPSync : NSObject
    2.26 +
    2.27 +/**
    2.28 + Creates an engine session.
    2.29 + */
    2.30 ++ (PEP_SESSION)createSession:(NSError **)error;
    2.31 +
    2.32 +/**
    2.33 + Releases an engine session that was created by `createSession`.
    2.34 + */
    2.35 ++ (void)releaseSession:(PEP_SESSION)session;
    2.36 +
    2.37 +- (instancetype)initWithSendMessageDelegate:(id<PEPSendMessageDelegate>
    2.38 +                                             _Nonnull)sendMessageDelegate
    2.39 +                    notifyHandshakeDelegate:(id<PEPNotifyHandshakeDelegate>
    2.40 +                                             _Nonnull)notifyHandshakeDelegate;
    2.41 +
    2.42 +- (void)startup;
    2.43 +
    2.44 +- (void)shutdown;
    2.45 +
    2.46 +@end