src/sync_actions.c
changeset 627 ef1fdfde8ced
parent 623 533a7fcc423b
child 650 accc0ad7d32c
     1.1 --- a/src/sync_actions.c	Sun May 15 16:23:31 2016 +0200
     1.2 +++ b/src/sync_actions.c	Sun May 15 21:23:36 2016 +0200
     1.3 @@ -7,12 +7,13 @@
     1.4  // sendBeacon() - 
     1.5  //
     1.6  //  params:
     1.7 +//      session (in)        session handle
     1.8  //      partner (in)        (must be NULL)
     1.9  //
    1.10  //  returns:
    1.11  //      PEP_STATUS_OK or any other value on error
    1.12  
    1.13 -PEP_STATUS sendBeacon(const Identity partner)
    1.14 +PEP_STATUS sendBeacon(PEP_SESSION session, const Identity partner)
    1.15  {
    1.16      PEP_STATUS status = PEP_STATUS_OK;
    1.17  
    1.18 @@ -29,12 +30,13 @@
    1.19  // sendHandshakeRequest() - 
    1.20  //
    1.21  //  params:
    1.22 +//      session (in)        session handle
    1.23  //      partner (in)        partner in sync
    1.24  //
    1.25  //  returns:
    1.26  //      PEP_STATUS_OK or any other value on error
    1.27  
    1.28 -PEP_STATUS sendHandshakeRequest(const Identity partner)
    1.29 +PEP_STATUS sendHandshakeRequest(PEP_SESSION session, const Identity partner)
    1.30  {
    1.31      PEP_STATUS status = PEP_STATUS_OK;
    1.32  
    1.33 @@ -51,12 +53,13 @@
    1.34  // showHandshake() - 
    1.35  //
    1.36  //  params:
    1.37 +//      session (in)        session handle
    1.38  //      partner (in)        partner in sync
    1.39  //
    1.40  //  returns:
    1.41  //      PEP_STATUS_OK or any other value on error
    1.42  
    1.43 -PEP_STATUS showHandshake(const Identity partner)
    1.44 +PEP_STATUS showHandshake(PEP_SESSION session, const Identity partner)
    1.45  {
    1.46      PEP_STATUS status = PEP_STATUS_OK;
    1.47  
    1.48 @@ -73,12 +76,13 @@
    1.49  // reject() - 
    1.50  //
    1.51  //  params:
    1.52 +//      session (in)        session handle
    1.53  //      partner (in)        partner in sync
    1.54  //
    1.55  //  returns:
    1.56  //      PEP_STATUS_OK or any other value on error
    1.57  
    1.58 -PEP_STATUS reject(const Identity partner)
    1.59 +PEP_STATUS reject(PEP_SESSION session, const Identity partner)
    1.60  {
    1.61      PEP_STATUS status = PEP_STATUS_OK;
    1.62  
    1.63 @@ -95,12 +99,13 @@
    1.64  // storeGroupKeys() - 
    1.65  //
    1.66  //  params:
    1.67 +//      session (in)        session handle
    1.68  //      partner (in)        partner in sync
    1.69  //
    1.70  //  returns:
    1.71  //      PEP_STATUS_OK or any other value on error
    1.72  
    1.73 -PEP_STATUS storeGroupKeys(const Identity partner)
    1.74 +PEP_STATUS storeGroupKeys(PEP_SESSION session, const Identity partner)
    1.75  {
    1.76      PEP_STATUS status = PEP_STATUS_OK;
    1.77  
    1.78 @@ -117,12 +122,13 @@
    1.79  // sendOwnKeys() - 
    1.80  //
    1.81  //  params:
    1.82 +//      session (in)        session handle
    1.83  //      partner (in)        (must be NULL)
    1.84  //
    1.85  //  returns:
    1.86  //      PEP_STATUS_OK or any other value on error
    1.87  
    1.88 -PEP_STATUS sendOwnKeys(const Identity partner)
    1.89 +PEP_STATUS sendOwnKeys(PEP_SESSION session, const Identity partner)
    1.90  {
    1.91      PEP_STATUS status = PEP_STATUS_OK;
    1.92  
    1.93 @@ -139,12 +145,13 @@
    1.94  // transmitGroupKeys() - 
    1.95  //
    1.96  //  params:
    1.97 +//      session (in)        session handle
    1.98  //      partner (in)        partner in sync
    1.99  //
   1.100  //  returns:
   1.101  //      PEP_STATUS_OK or any other value on error
   1.102  
   1.103 -PEP_STATUS transmitGroupKeys(const Identity partner)
   1.104 +PEP_STATUS transmitGroupKeys(PEP_SESSION session, const Identity partner)
   1.105  {
   1.106      PEP_STATUS status = PEP_STATUS_OK;
   1.107