src/sync_impl.h
author Roker <roker@pep-project.org>
Tue, 27 Sep 2016 21:36:31 +0200
branchkeysync
changeset 1201 571f488333be
parent 1195 53f8859f476b
child 1445 5d233bcdde76
permissions -rw-r--r--
add "-luuid" to LDFLAGS due to linker errors on Ubuntu
vb@1059
     1
#pragma once
vb@1059
     2
vb@1059
     3
#include "message.h"
edouard@1172
     4
#include "sync.h"
vb@1059
     5
#include "sync_fsm.h"
vb@1059
     6
vb@1059
     7
#ifdef __cplusplus
vb@1059
     8
extern "C" {
vb@1059
     9
#endif
vb@1059
    10
vb@1059
    11
PEP_STATUS receive_sync_msg(
vb@1059
    12
        PEP_SESSION session,
edouard@1172
    13
        sync_msg_t *sync_msg
vb@1059
    14
    );
vb@1059
    15
edouard@1195
    16
PEP_STATUS inject_DeviceState_event(
edouard@1195
    17
    PEP_SESSION session, 
edouard@1195
    18
    DeviceState_event event,
edouard@1195
    19
    Identity partner,
edouard@1195
    20
    void *extra);
edouard@1195
    21
edouard@1165
    22
PEP_STATUS receive_DeviceState_msg(
edouard@1165
    23
    PEP_SESSION session, 
edouard@1165
    24
    message *src, 
edouard@1165
    25
    PEP_rating rating, 
edouard@1165
    26
    stringlist_t *keylist);
vb@1059
    27
vb@1059
    28
DeviceGroup_Protocol_t *new_DeviceGroup_Protocol_msg(DeviceGroup_Protocol__payload_PR type);
vb@1059
    29
void free_DeviceGroup_Protocol_msg(DeviceGroup_Protocol_t *msg);
vb@1059
    30
vb@1059
    31
PEP_STATUS unicast_msg(
vb@1059
    32
        PEP_SESSION session,
vb@1091
    33
        const Identity partner,
vb@1059
    34
        DeviceState_state state,
vb@1097
    35
        DeviceGroup_Protocol_t *msg,
vb@1097
    36
        bool encrypted
vb@1059
    37
    );
vb@1059
    38
vb@1059
    39
PEP_STATUS multicast_self_msg(
vb@1059
    40
        PEP_SESSION session,
vb@1059
    41
        DeviceState_state state,
vb@1097
    42
        DeviceGroup_Protocol_t *msg,
vb@1097
    43
        bool encrypted
vb@1059
    44
    );
vb@1059
    45
vb@1085
    46
bool is_double(DeviceGroup_Protocol_t *msg);
vb@1085
    47
vb@1059
    48
#ifdef __cplusplus
vb@1059
    49
}
vb@1059
    50
#endif
vb@1059
    51