pEpObjCAdapter/PEPSync.m
author Dirk Zimmermann <dirk@pep-project.org>
Fri, 05 Oct 2018 12:09:01 +0200
branchIOSAD-103
changeset 686 fec1eae409cd
parent 682 33e516b5e51e
child 688 1b3d9f1481df
permissions -rw-r--r--
IOSAD-103 can get/set syncSendMessageDelegate
dirk@681
     1
//
dirk@681
     2
//  PEPSync.m
dirk@681
     3
//  pEpObjCAdapter
dirk@681
     4
//
dirk@681
     5
//  Created by Dirk Zimmermann on 04.10.18.
dirk@681
     6
//  Copyright © 2018 p≡p. All rights reserved.
dirk@681
     7
//
dirk@681
     8
dirk@681
     9
#import "PEPSync.h"
dirk@681
    10
dirk@686
    11
#import "PEPSyncSendMessageDelegate.h"
dirk@686
    12
dirk@682
    13
PEP_STATUS messageToSendObjc(struct _message *msg)
dirk@682
    14
{
dirk@682
    15
    return PEP_STATUS_OK;
dirk@682
    16
}
dirk@682
    17
dirk@682
    18
int inject_sync_eventObjc(SYNC_EVENT ev, void *management)
dirk@682
    19
{
dirk@682
    20
    return 0;
dirk@682
    21
}
dirk@682
    22
dirk@686
    23
static __weak PEPSyncSendMessageDelegate *s_PEPSyncSendMessageDelegate;
dirk@686
    24
dirk@681
    25
@implementation PEPSync
dirk@681
    26
dirk@686
    27
+ (void)setPEPSyncSendMessageDelegate:
dirk@686
    28
(PEPSyncSendMessageDelegate * _Nullable)syncSendMessageDelegate
dirk@686
    29
{
dirk@686
    30
    s_PEPSyncSendMessageDelegate = syncSendMessageDelegate;
dirk@686
    31
}
dirk@686
    32
dirk@686
    33
+ (PEPSyncSendMessageDelegate * _Nullable)syncSendMessageDelegate
dirk@686
    34
{
dirk@686
    35
    return s_PEPSyncSendMessageDelegate;
dirk@686
    36
}
dirk@686
    37
dirk@686
    38
- (void)setSyncSendMessageDelegate:(PEPSyncSendMessageDelegate *)syncSendMessageDelegate
dirk@686
    39
{
dirk@686
    40
    [PEPSync setPEPSyncSendMessageDelegate:syncSendMessageDelegate];
dirk@686
    41
}
dirk@686
    42
dirk@686
    43
- (PEPSyncSendMessageDelegate *)syncSendMessageDelegate
dirk@686
    44
{
dirk@686
    45
    return [PEPSync syncSendMessageDelegate];
dirk@686
    46
}
dirk@686
    47
dirk@681
    48
@end