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