src/sync.c
author Volker Birk <vb@pep-project.org>
Wed, 11 May 2016 10:43:10 +0200
changeset 597 560c0caf14ef
parent 574 3c21749a79a6
child 599 d2a023827e42
permissions -rw-r--r--
cleaning up
vb@572
     1
#include "pEp_internal.h"
vb@572
     2
#include "sync_internal.h"
vb@572
     3
vb@572
     4
#include <memory.h>
vb@572
     5
#include <assert.h>
vb@572
     6
vb@572
     7
vb@597
     8
PEP_sync_callbacks_t PEP_sync_callbacks = { NULL, NULL };
vb@572
     9
vb@572
    10
DYNAMIC_API PEP_STATUS register_sync_callbacks(
vb@597
    11
        messageToSend_t messageToSend,
vb@572
    12
        showHandshake_t showHandshake
vb@572
    13
    )
vb@572
    14
{
vb@597
    15
    PEP_sync_callbacks.messageToSend = messageToSend;
vb@572
    16
    PEP_sync_callbacks.showHandshake = showHandshake;
vb@572
    17
vb@572
    18
    return PEP_STATUS_OK;
vb@572
    19
}
vb@572
    20
vb@572
    21
DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session) {
vb@597
    22
    PEP_sync_callbacks.messageToSend = NULL;
vb@572
    23
    PEP_sync_callbacks.showHandshake = NULL;
vb@572
    24
}
vb@572
    25