src/sync.h
changeset 604 ba04c2bd81a1
parent 602 41fc6ea3548b
child 609 a22a400611ca
     1.1 --- a/src/sync.h	Wed May 11 20:06:23 2016 +0200
     1.2 +++ b/src/sync.h	Thu May 12 00:23:23 2016 +0200
     1.3 @@ -18,7 +18,7 @@
     1.4  //      msg (in)        message struct with message to send
     1.5  //
     1.6  //  return value:
     1.7 -//      must return PEP_STATUS_OK or any other value on error
     1.8 +//      PEP_STATUS_OK or any other value on error
     1.9  
    1.10  typedef PEP_STATUS (*messageToSend_t)(void *obj, const message *msg);
    1.11  
    1.12 @@ -35,14 +35,16 @@
    1.13  //      obj (in)        object handle (implementation defined)
    1.14  //      self (in)       own identity
    1.15  //      partner (in)    identity of partner
    1.16 +//      result (out)    result of handshake
    1.17  //
    1.18  //  return value:
    1.19 -//      result of handshake
    1.20 +//      PEP_STATUS_OK or any other value on error
    1.21  
    1.22 -typedef sync_handshake_result (*showHandshake_t)(
    1.23 +typedef PEP_STATUS (*showHandshake_t)(
    1.24          void *obj,
    1.25          const pEp_identity *self,
    1.26 -        const pEp_identity *partner
    1.27 +        const pEp_identity *partner,
    1.28 +        sync_handshake_result *result
    1.29      );
    1.30  
    1.31