src/sync.h
branchkeysync
changeset 1236 991afc1aa2a1
parent 1203 c463238a1942
child 1445 5d233bcdde76
     1.1 --- a/src/sync.h	Fri Sep 30 17:25:15 2016 +0200
     1.2 +++ b/src/sync.h	Mon Oct 03 19:08:15 2016 +0200
     1.3 @@ -115,15 +115,38 @@
     1.4          retrieve_next_sync_msg_t retrieve_next_sync_msg
     1.5      );
     1.6  
     1.7 +// attach_sync_session() - attach session to a session running keysync state machine 
     1.8 +//
     1.9 +//  parameters:
    1.10 +//      session (in)                session to attach
    1.11 +//      sync_session (in)           session running keysync
    1.12 +//
    1.13 +//  return value:
    1.14 +//      PEP_STATUS_OK or any other value on errror
    1.15 +//
    1.16 +//  caveat:
    1.17 +//      register_sync_callbacks must have been called on sync_session
    1.18 +//      call that BEFORE you're using that session in any other part of the engine
    1.19 +
    1.20 +DYNAMIC_API PEP_STATUS attach_sync_session(
    1.21 +        PEP_SESSION session,
    1.22 +        PEP_SESSION sync_session
    1.23 +    );
    1.24 +
    1.25 +// detach_sync_session() - detach previously attached sync session
    1.26 +//
    1.27 +//  parameters:
    1.28 +//      session (in)                session to detach 
    1.29 +
    1.30 +DYNAMIC_API PEP_STATUS detach_sync_session(PEP_SESSION session);
    1.31  
    1.32  // unregister_sync_callbacks() - unregister adapter's callbacks
    1.33  //
    1.34  //  parameters:
    1.35 -//      session (in)                session where to store obj handle
    1.36 +//      session (in)                session to unregister
    1.37  
    1.38  DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session);
    1.39  
    1.40 -
    1.41  // do_sync_protocol() - function to be run on an extra thread
    1.42  //
    1.43  //  parameters: