src/sync_impl.h
author Volker Birk <vb@pep.foundation>
Mon, 29 Aug 2016 10:50:48 +0200
branchkeysync
changeset 1085 9db2d7650ddc
parent 1059 b5e275717e44
child 1091 0571ce4b97a2
permissions -rw-r--r--
sequences
vb@1059
     1
#pragma once
vb@1059
     2
vb@1059
     3
#include "message.h"
vb@1059
     4
#include "sync_fsm.h"
vb@1059
     5
vb@1059
     6
#ifdef __cplusplus
vb@1059
     7
extern "C" {
vb@1059
     8
#endif
vb@1059
     9
vb@1059
    10
PEP_STATUS receive_sync_msg(
vb@1059
    11
        PEP_SESSION session,
vb@1059
    12
        DeviceGroup_Protocol_t *msg
vb@1059
    13
    );
vb@1059
    14
vb@1059
    15
PEP_STATUS receive_DeviceState_msg(PEP_SESSION session, message *src);
vb@1059
    16
vb@1059
    17
DeviceGroup_Protocol_t *new_DeviceGroup_Protocol_msg(DeviceGroup_Protocol__payload_PR type);
vb@1059
    18
void free_DeviceGroup_Protocol_msg(DeviceGroup_Protocol_t *msg);
vb@1059
    19
vb@1059
    20
PEP_STATUS unicast_msg(
vb@1059
    21
        PEP_SESSION session,
vb@1059
    22
        Identity partner,
vb@1059
    23
        DeviceState_state state,
vb@1059
    24
        DeviceGroup_Protocol_t *msg
vb@1059
    25
    );
vb@1059
    26
vb@1059
    27
PEP_STATUS multicast_self_msg(
vb@1059
    28
        PEP_SESSION session,
vb@1059
    29
        DeviceState_state state,
vb@1059
    30
        DeviceGroup_Protocol_t *msg
vb@1059
    31
    );
vb@1059
    32
vb@1085
    33
bool is_double(DeviceGroup_Protocol_t *msg);
vb@1085
    34
vb@1059
    35
#ifdef __cplusplus
vb@1059
    36
}
vb@1059
    37
#endif
vb@1059
    38