src/sync.h
branchENGINE-133
changeset 1462 b93663bfc7c6
parent 1459 ab329d7db8d7
child 1467 ff7c60d14af0
child 1469 43e45b53e5cb
     1.1 --- a/src/sync.h	Sun Dec 04 02:51:59 2016 +0100
     1.2 +++ b/src/sync.h	Wed Dec 07 15:39:06 2016 +0100
     1.3 @@ -107,9 +107,9 @@
     1.4  //
     1.5  //  parameters:
     1.6  //      session (in)                session where to store obj handle
     1.7 -//      obj (in)                    object handle (implementation defined)
     1.8 +//      management (in)             application defined
     1.9  //      messageToSend (in)          callback for sending message
    1.10 -//      notifyHandshake (in)          callback for doing the handshake
    1.11 +//      notifyHandshake (in)        callback for doing the handshake
    1.12  //      retrieve_next_sync_msg (in) callback for receiving sync messages
    1.13  //
    1.14  //  return value:
    1.15 @@ -120,7 +120,7 @@
    1.16  
    1.17  DYNAMIC_API PEP_STATUS register_sync_callbacks(
    1.18          PEP_SESSION session,
    1.19 -        void *obj,
    1.20 +        void *management,
    1.21          messageToSend_t messageToSend,
    1.22          notifyHandshake_t notifyHandshake,
    1.23          inject_sync_msg_t inject_sync_msg,
    1.24 @@ -166,8 +166,7 @@
    1.25  //      retrieve_next_sync_msg  pointer to retrieve_next_identity() callback
    1.26  //                              which returns at least a valid address field in
    1.27  //                              the identity struct
    1.28 -//      management              management data to give to keymanagement
    1.29 -//                              (implementation defined)
    1.30 +//      obj                     application defined sync object
    1.31  //
    1.32  //  return value:
    1.33  //      PEP_STATUS_OK if thread has to terminate successfully or any other
    1.34 @@ -176,11 +175,10 @@
    1.35  //  caveat:
    1.36  //      to ensure proper working of this library, a thread has to be started
    1.37  //      with this function immediately after initialization
    1.38 -//      do_keymanagement() calls retrieve_next_identity(management)
    1.39  
    1.40  DYNAMIC_API PEP_STATUS do_sync_protocol(
    1.41          PEP_SESSION session,
    1.42 -        void *management
    1.43 +        void *obj
    1.44      );
    1.45  
    1.46  // free_sync_msg() - free sync_msg_t struct when not passed to do_sync_protocol