pEpObjCAdapter/PEPMessageUtil.h
author Dirk Zimmermann <dz@pep.security>
Tue, 23 Jul 2019 16:05:32 +0200
branchIOSAD-123
changeset 1096 94a663ebfb1a
parent 990 d8871d059e64
child 1097 e4bd8bed57d9
permissions -rw-r--r--
IOSAD-123 Eliminate duplicate (and buggy) method.
dirk@187
     1
//
dirk@367
     2
//  PEPMessageUtil.h
dirk@187
     3
//  pEpiOSAdapter
dirk@187
     4
//
dirk@187
     5
//  Created by Volker Birk on 09.07.15.
dirk@187
     6
//  Copyright (c) 2015 p≡p. All rights reserved.
dirk@187
     7
//
dirk@187
     8
dirk@187
     9
#import <Foundation/Foundation.h>
dirk@187
    10
dirk@656
    11
#import "message_api.h"
dirk@187
    12
dirk@307
    13
@class PEPIdentity;
dirk@481
    14
@class PEPMessage;
dirk@307
    15
dirk@187
    16
NSArray * _Nonnull PEP_arrayFromStringlist(stringlist_t * _Nonnull sl);
dirk@187
    17
stringlist_t * _Nullable PEP_arrayToStringlist(NSArray * _Nullable array);
dirk@187
    18
dirk@307
    19
pEp_identity * _Nonnull PEP_identityToStruct(PEPIdentity * _Nonnull identity);
dirk@352
    20
dirk@352
    21
/**
dirk@352
    22
 If the ident does not contain an address, no PEPIdentity can be constructed.
dirk@352
    23
 */
dirk@352
    24
PEPIdentity * _Nullable PEP_identityFromStruct(pEp_identity * _Nonnull ident);
dirk@307
    25
dz@990
    26
NSArray<PEPIdentity *> * _Nonnull PEP_arrayFromIdentityList(identity_list * _Nonnull il);
dz@990
    27
identity_list * _Nullable PEP_identityArrayToList(NSArray<PEPIdentity *> * _Nullable array);
dirk@672
    28
dirk@187
    29
pEp_identity * _Nullable PEP_identityDictToStruct(NSDictionary * _Nullable dict);
dirk@187
    30
NSDictionary * _Nonnull PEP_identityDictFromStruct(pEp_identity * _Nullable ident);
dirk@187
    31
dirk@481
    32
PEPMessage * _Nullable pEpMessageFromStruct(message * _Nullable msg);
dirk@481
    33
dz@990
    34
message * _Nullable PEP_messageToStruct(PEPMessage * _Nullable message);
dirk@187
    35
message * _Nullable PEP_messageDictToStruct(NSDictionary * _Nullable dict);
dirk@187
    36
NSDictionary * _Nonnull PEP_messageDictFromStruct(message * _Nullable msg);
dirk@187
    37
dz@990
    38
NSArray * _Nonnull PEP_arrayFromStringPairlist(stringpair_list_t * _Nonnull sl);
dz@990
    39
NSArray * _Nonnull PEP_arrayFromBloblist(bloblist_t * _Nonnull bl);