src/sync_impl.h
author Volker Birk <vb@pep.foundation>
Thu, 01 Sep 2016 17:55:03 +0200
branchkeysync
changeset 1111 3c46dc58096d
parent 1099 113463c3e85a
child 1165 05c831cfab65
permissions -rw-r--r--
merging
     1 #pragma once
     2 
     3 #include "message.h"
     4 #include "sync_fsm.h"
     5 
     6 #ifdef __cplusplus
     7 extern "C" {
     8 #endif
     9 
    10 PEP_STATUS receive_sync_msg(
    11         PEP_SESSION session,
    12         DeviceGroup_Protocol_t *msg
    13     );
    14 
    15 PEP_STATUS receive_DeviceState_msg(PEP_SESSION session, message *src,
    16         PEP_rating rating);
    17 
    18 DeviceGroup_Protocol_t *new_DeviceGroup_Protocol_msg(DeviceGroup_Protocol__payload_PR type);
    19 void free_DeviceGroup_Protocol_msg(DeviceGroup_Protocol_t *msg);
    20 
    21 PEP_STATUS unicast_msg(
    22         PEP_SESSION session,
    23         const Identity partner,
    24         DeviceState_state state,
    25         DeviceGroup_Protocol_t *msg,
    26         bool encrypted
    27     );
    28 
    29 PEP_STATUS multicast_self_msg(
    30         PEP_SESSION session,
    31         DeviceState_state state,
    32         DeviceGroup_Protocol_t *msg,
    33         bool encrypted
    34     );
    35 
    36 bool is_double(DeviceGroup_Protocol_t *msg);
    37 
    38 #ifdef __cplusplus
    39 }
    40 #endif
    41