pEpObjCAdapter/PEPSync.m
branchIOSAD-103
changeset 693 5bc227f08143
parent 692 8925609a07ca
child 695 26359df4bec8
     1.1 --- a/pEpObjCAdapter/PEPSync.m	Fri Oct 05 12:09:01 2018 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSync.m	Fri Oct 05 12:09:01 2018 +0200
     1.3 @@ -12,6 +12,8 @@
     1.4  #import "PEPMessageUtil.h"
     1.5  #import "PEPMessage.h"
     1.6  
     1.7 +// MARK: - Declare internals
     1.8 +
     1.9  @interface PEPSync ()
    1.10  
    1.11  + (void)setPEPSyncSendMessageDelegate:
    1.12 @@ -23,6 +25,8 @@
    1.13  
    1.14  @end
    1.15  
    1.16 +// MARK: - Globals called by the engine, used in session init
    1.17 +
    1.18  PEP_STATUS messageToSendObjc(struct _message *msg)
    1.19  {
    1.20      PEPSyncSendMessageDelegate *delegate = [PEPSync syncSendMessageDelegate];
    1.21 @@ -39,8 +43,12 @@
    1.22      return 0;
    1.23  }
    1.24  
    1.25 +// MARK: - Internal globals
    1.26 +
    1.27  static __weak PEPSyncSendMessageDelegate *s_PEPSyncSendMessageDelegate;
    1.28  
    1.29 +// MARK: - PEPSync class
    1.30 +
    1.31  @implementation PEPSync
    1.32  
    1.33  + (void)setPEPSyncSendMessageDelegate: