correcting unregister
authorVolker Birk <vb@pep-project.org>
Wed, 11 May 2016 20:06:06 +0200
changeset 60241fc6ea3548b
parent 599 d2a023827e42
child 603 8bff69e425d3
correcting unregister
src/sync.c
src/sync.h
     1.1 --- a/src/sync.c	Wed May 11 17:09:02 2016 +0200
     1.2 +++ b/src/sync.c	Wed May 11 20:06:06 2016 +0200
     1.3 @@ -22,6 +22,7 @@
     1.4  }
     1.5  
     1.6  DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session) {
     1.7 +    session->sync_obj = NULL;
     1.8      PEP_sync_callbacks.messageToSend = NULL;
     1.9      PEP_sync_callbacks.showHandshake = NULL;
    1.10  }
     2.1 --- a/src/sync.h	Wed May 11 17:09:02 2016 +0200
     2.2 +++ b/src/sync.h	Wed May 11 20:06:06 2016 +0200
     2.3 @@ -69,8 +69,11 @@
     2.4  
     2.5  
     2.6  // unregister_sync_callbacks() - unregister adapter's callbacks
     2.7 +//
     2.8 +//  parameters:
     2.9 +//      session (in)                session where to store obj handle
    2.10  
    2.11 -DYNAMIC_API void unregister_sync_callbacks();
    2.12 +DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session);
    2.13  
    2.14  
    2.15  #ifdef __cplusplus