src/sync_impl.h
author Volker Birk <vb@pep.foundation>
Mon, 29 Aug 2016 17:39:35 +0200
branchkeysync
changeset 1091 0571ce4b97a2
parent 1085 9db2d7650ddc
child 1097 6248fe9519df
permissions -rw-r--r--
fixes
     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     );
    26 
    27 PEP_STATUS multicast_self_msg(
    28         PEP_SESSION session,
    29         DeviceState_state state,
    30         DeviceGroup_Protocol_t *msg
    31     );
    32 
    33 bool is_double(DeviceGroup_Protocol_t *msg);
    34 
    35 #ifdef __cplusplus
    36 }
    37 #endif
    38