src/sync.h
branchENGINE-133
changeset 1445 5d233bcdde76
parent 1236 991afc1aa2a1
child 1459 ab329d7db8d7
     1.1 --- a/src/sync.h	Fri Nov 25 15:59:58 2016 +0100
     1.2 +++ b/src/sync.h	Sat Nov 26 03:54:06 2016 +0100
     1.3 @@ -84,11 +84,14 @@
     1.4  //
     1.5  //  parameters:
     1.6  //      management (in)     application defined
     1.7 +//      timeout (in,out)    do not wait longer than timeout for message
     1.8  //
     1.9  //  return value:
    1.10 -//      next message or NULL for termination
    1.11 +//      next message or :
    1.12 +//      NULL + timeout == 0 for termination
    1.13 +//      NULL + timeout != 0 for timeout occurence
    1.14  
    1.15 -typedef void *(*retrieve_next_sync_msg_t)(void *management);
    1.16 +typedef void *(*retrieve_next_sync_msg_t)(void *management, time_t *timeout);
    1.17  
    1.18  
    1.19  // register_sync_callbacks() - register adapter's callbacks