pEpObjCAdapter/PEPMessageUtil.h
author Dirk Zimmermann <dz@pep.security>
Thu, 21 Mar 2019 12:37:32 +0100
branchrefactor
changeset 903 e9428f52fd88
parent 850 c1badc92ff38
child 913 ea98875452d6
permissions -rw-r--r--
IOS-1480 Merge IOS-1480 into refactor.
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
dirk@672
    26
NSArray<PEPIdentity *> *PEP_arrayFromIdentityList(identity_list *il);
dirk@672
    27
dirk@187
    28
pEp_identity * _Nullable PEP_identityDictToStruct(NSDictionary * _Nullable dict);
dirk@187
    29
NSDictionary * _Nonnull PEP_identityDictFromStruct(pEp_identity * _Nullable ident);
dirk@187
    30
dirk@481
    31
PEPMessage * _Nullable pEpMessageFromStruct(message * _Nullable msg);
dirk@481
    32
dirk@649
    33
message *PEP_messageToStruct(PEPMessage *message);
dirk@187
    34
message * _Nullable PEP_messageDictToStruct(NSDictionary * _Nullable dict);
dirk@187
    35
NSDictionary * _Nonnull PEP_messageDictFromStruct(message * _Nullable msg);
dirk@187
    36
dirk@597
    37
NSArray *PEP_identityArrayFromList(identity_list *il);
dirk@597
    38
NSArray *PEP_arrayFromStringPairlist(stringpair_list_t *sl);
dirk@597
    39
NSArray *PEP_arrayFromBloblist(bloblist_t *bl);