src/sync_impl.h
author Volker Birk <vb@pep.foundation>
Wed, 31 Aug 2016 08:59:35 +0200
branchkeysync
changeset 1097 6248fe9519df
parent 1091 0571ce4b97a2
child 1099 113463c3e85a
permissions -rw-r--r--
don't encrypt Beacons
     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 
    17 DeviceGroup_Protocol_t *new_DeviceGroup_Protocol_msg(DeviceGroup_Protocol__payload_PR type);
    18 void free_DeviceGroup_Protocol_msg(DeviceGroup_Protocol_t *msg);
    19 
    20 PEP_STATUS unicast_msg(
    21         PEP_SESSION session,
    22         const Identity partner,
    23         DeviceState_state state,
    24         DeviceGroup_Protocol_t *msg,
    25         bool encrypted
    26     );
    27 
    28 PEP_STATUS multicast_self_msg(
    29         PEP_SESSION session,
    30         DeviceState_state state,
    31         DeviceGroup_Protocol_t *msg,
    32         bool encrypted
    33     );
    34 
    35 bool is_double(DeviceGroup_Protocol_t *msg);
    36 
    37 #ifdef __cplusplus
    38 }
    39 #endif
    40