start state machine sync
authorVolker Birk <vb@pep.foundation>
Thu, 16 Aug 2018 14:43:27 +0200
branchsync
changeset 28500a83b09614f7
parent 2849 30e56c799185
child 2851 af6de711d3a2
start state machine
src/sync_api.c
src/sync_api.h
     1.1 --- a/src/sync_api.c	Thu Aug 16 00:10:49 2018 +0200
     1.2 +++ b/src/sync_api.c	Thu Aug 16 14:43:27 2018 +0200
     1.3 @@ -25,7 +25,8 @@
     1.4      session->inject_sync_event = inject_sync_event;
     1.5      session->retrieve_next_sync_event = retrieve_next_sync_event;
     1.6  
     1.7 -    return PEP_STATUS_OK;
     1.8 +    // start state machine
     1.9 +    return Sync_driver(session, Sync_PR_keysync, Init);
    1.10  }
    1.11  
    1.12  DYNAMIC_API void unregister_sync_callbacks(PEP_SESSION session) {
     2.1 --- a/src/sync_api.h	Thu Aug 16 00:10:49 2018 +0200
     2.2 +++ b/src/sync_api.h	Thu Aug 16 14:43:27 2018 +0200
     2.3 @@ -81,7 +81,7 @@
     2.4  //
     2.5  //  parameters:
     2.6  //      ev (in)             event to inject
     2.7 -//      management (in)     application defined
     2.8 +//      management (in)     application defined; usually a locked queue
     2.9  //
    2.10  //  return value:
    2.11  //      0 if event could be stored successfully or nonzero otherwise
    2.12 @@ -92,7 +92,7 @@
    2.13  // retrieve_next_sync_event - receive next sync event
    2.14  //
    2.15  //  parameters:
    2.16 -//      management (in)     application defined
    2.17 +//      management (in)     application defined; usually a locked queue
    2.18  //
    2.19  //  return value:
    2.20  //      next event
    2.21 @@ -104,7 +104,7 @@
    2.22  //
    2.23  //  parameters:
    2.24  //      session (in)                    session where to store obj handle
    2.25 -//      management (in)                 application defined
    2.26 +//      management (in)                 application defined; usually a locked queue
    2.27  //      notifyHandshake (in)            callback for doing the handshake
    2.28  //      retrieve_next_sync_event (in)   callback for receiving sync event
    2.29  //