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
     1 #include "pEp_internal.h"
     2 #include "sync_internal.h"
     3 
     4 #include <memory.h>
     5 #include <assert.h>
     6 
     7 
     8 PEP_sync_callbacks_t PEP_sync_callbacks = { NULL, NULL };
     9 
    10 DYNAMIC_API PEP_STATUS register_sync_callbacks(
    11         messageToSend_t messageToSend,
    12         showHandshake_t showHandshake
    13     )
    14 {
    15     PEP_sync_callbacks.messageToSend = messageToSend;
    16     PEP_sync_callbacks.showHandshake = showHandshake;
    17 
    18     return PEP_STATUS_OK;
    19 }
    20 
    21 DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session) {
    22     PEP_sync_callbacks.messageToSend = NULL;
    23     PEP_sync_callbacks.showHandshake = NULL;
    24 }
    25