no handle needed
authorVolker Birk <vb@pep-project.org>
Tue, 03 May 2016 15:57:12 +0200
changeset 57328b0d3154f0f
parent 572 3077e2489dfe
child 574 3c21749a79a6
no handle needed
src/sync.c
src/sync.h
     1.1 --- a/src/sync.c	Tue May 03 15:50:40 2016 +0200
     1.2 +++ b/src/sync.c	Tue May 03 15:57:12 2016 +0200
     1.3 @@ -8,7 +8,6 @@
     1.4  PEP_sync_callbacks_t PEP_sync_callbacks = { NULL, NULL, NULL };
     1.5  
     1.6  DYNAMIC_API PEP_STATUS register_sync_callbacks(
     1.7 -        PEP_SESSION session,
     1.8          sendBeacon_t sendBeacon,
     1.9          sendHandshakeRequest_t sendHandshakeRequest,
    1.10          showHandshake_t showHandshake
     2.1 --- a/src/sync.h	Tue May 03 15:50:40 2016 +0200
     2.2 +++ b/src/sync.h	Tue May 03 15:57:12 2016 +0200
     2.3 @@ -57,16 +57,17 @@
     2.4  // register_sync_callbacks() - register adapter's callbacks
     2.5  //
     2.6  //  parameters:
     2.7 -//      session (in)                session handle
     2.8  //      sendBeacon (in)             callback for sending beacon
     2.9  //      sendHandshakeRequest (in)   callback for sending handshake request
    2.10  //      showHandshake (in)          callback for doing the handshake
    2.11  //
    2.12  //  return value:
    2.13  //      PEP_STATUS_OK or any other value on errror
    2.14 +//
    2.15 +//  caveat:
    2.16 +//      call that BEFORE you're using any other part of the engine
    2.17  
    2.18  DYNAMIC_API PEP_STATUS register_sync_callbacks(
    2.19 -        PEP_SESSION session,
    2.20          sendBeacon_t sendBeacon,
    2.21          sendHandshakeRequest_t sendHandshakeRequest,
    2.22          showHandshake_t showHandshake
    2.23 @@ -74,11 +75,8 @@
    2.24  
    2.25  
    2.26  // unregister_sync_callbacks() - unregister adapter's callbacks
    2.27 -//
    2.28 -//  parameters:
    2.29 -//      session (in)                session handle
    2.30  
    2.31 -DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session);
    2.32 +DYNAMIC_API void unregister_sync_callbacks();
    2.33  
    2.34  
    2.35  #ifdef __cplusplus