pEpObjCAdapter/PEPMessageUtil.h
author Dirk Zimmermann <dz@pep.security>
Thu, 12 Sep 2019 16:41:52 +0200
branchIOSAD-141
changeset 1244 d780d1356405
parent 990 d8871d059e64
child 1096 94a663ebfb1a
permissions -rw-r--r--
IOSAD-141 Give the threads a name.
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_identityArrayFromList(identity_list * _Nonnull il);
dz@990
    39
NSArray * _Nonnull PEP_arrayFromStringPairlist(stringpair_list_t * _Nonnull sl);
dz@990
    40
NSArray * _Nonnull PEP_arrayFromBloblist(bloblist_t * _Nonnull bl);