more docu sync
authorVolker Birk <vb@pep.foundation>
Thu, 30 Aug 2018 02:43:06 +0200
branchsync
changeset 291213a2b54020b7
parent 2911 61e0cb26f440
child 2913 b2c2eed5be7a
more docu
src/sync_api.c
src/sync_api.h
     1.1 --- a/src/sync_api.c	Thu Aug 30 02:34:15 2018 +0200
     1.2 +++ b/src/sync_api.c	Thu Aug 30 02:43:06 2018 +0200
     1.3 @@ -131,7 +131,8 @@
     1.4      if (status != PEP_STATUS_OK && status != PEP_MESSAGE_IGNORE) {
     1.5          char buffer[MAX_LINELENGTH];
     1.6          memset(buffer, 0, MAX_LINELENGTH);
     1.7 -        snprintf(buffer, MAX_LINELENGTH, "problem with msg received: %d\n", (int) status);
     1.8 +        snprintf(buffer, MAX_LINELENGTH, "problem with msg received: %d\n",
     1.9 +                (int) status);
    1.10          log_event(session, buffer, "pEp sync protocol", NULL, NULL);
    1.11      }
    1.12  
     2.1 --- a/src/sync_api.h	Thu Aug 30 02:34:15 2018 +0200
     2.2 +++ b/src/sync_api.h	Thu Aug 30 02:43:06 2018 +0200
     2.3 @@ -82,6 +82,10 @@
     2.4  //
     2.5  //  return value:
     2.6  //      next event
     2.7 +//
     2.8 +//  caveat:
     2.9 +//      an implementation of retrieve_next_sync_event must return
    2.10 +//      new_sync_timeout_event() in case of timeout
    2.11  
    2.12  typedef SYNC_EVENT (*retrieve_next_sync_event_t)(void *management,
    2.13          time_t threshold);