src/sync.c
changeset 604 ba04c2bd81a1
parent 602 41fc6ea3548b
child 609 a22a400611ca
     1.1 --- a/src/sync.c	Wed May 11 20:06:23 2016 +0200
     1.2 +++ b/src/sync.c	Thu May 12 00:23:23 2016 +0200
     1.3 @@ -1,12 +1,9 @@
     1.4  #include "pEp_internal.h"
     1.5 -#include "sync_internal.h"
     1.6  
     1.7  #include <memory.h>
     1.8  #include <assert.h>
     1.9  
    1.10  
    1.11 -PEP_sync_callbacks_t PEP_sync_callbacks = { NULL, NULL };
    1.12 -
    1.13  DYNAMIC_API PEP_STATUS register_sync_callbacks(
    1.14          PEP_SESSION session,
    1.15          void *obj,
    1.16 @@ -15,15 +12,15 @@
    1.17      )
    1.18  {
    1.19      session->sync_obj = obj;
    1.20 -    PEP_sync_callbacks.messageToSend = messageToSend;
    1.21 -    PEP_sync_callbacks.showHandshake = showHandshake;
    1.22 +    session->messageToSend = messageToSend;
    1.23 +    session->showHandshake = showHandshake;
    1.24  
    1.25      return PEP_STATUS_OK;
    1.26  }
    1.27  
    1.28  DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session) {
    1.29      session->sync_obj = NULL;
    1.30 -    PEP_sync_callbacks.messageToSend = NULL;
    1.31 -    PEP_sync_callbacks.showHandshake = NULL;
    1.32 +    session->messageToSend = NULL;
    1.33 +    session->showHandshake = NULL;
    1.34  }
    1.35