src/sync_impl.h
author Volker Birk <vb@pep.foundation>
Tue, 23 Aug 2016 11:42:05 +0200
branchkeysync
changeset 1059 b5e275717e44
child 1085 9db2d7650ddc
permissions -rw-r--r--
adding sync_impl files
     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         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 #ifdef __cplusplus
    34 }
    35 #endif
    36