name it notify sync
authorVolker Birk <vb@pep.foundation>
Thu, 09 Aug 2018 17:41:22 +0200
branchsync
changeset 283520d73101227c
parent 2834 7a35e7ea6138
child 2836 0172fc10599f
name it notify
src/sync_impl.c
src/sync_impl.h
sync/gen_statemachine.ysl2
     1.1 --- a/src/sync_impl.c	Thu Aug 09 17:33:39 2018 +0200
     1.2 +++ b/src/sync_impl.c	Thu Aug 09 17:41:22 2018 +0200
     1.3 @@ -94,7 +94,7 @@
     1.4      return status;
     1.5  }
     1.6  
     1.7 -PEP_STATUS Sync_send(
     1.8 +PEP_STATUS Sync_notify(
     1.9          PEP_SESSION session, 
    1.10          Sync_PR fsm,
    1.11          int message_type
     2.1 --- a/src/sync_impl.h	Thu Aug 09 17:33:39 2018 +0200
     2.2 +++ b/src/sync_impl.h	Thu Aug 09 17:41:22 2018 +0200
     2.3 @@ -40,10 +40,10 @@
     2.4  PEP_STATUS showJoinGroupHandshake(PEP_SESSION session);
     2.5  PEP_STATUS showGroupedHandshake(PEP_SESSION session);
     2.6  
     2.7 -// send event to own state machine, use state to generate
     2.8 -// Sync message if necessary
     2.9 +// notify state machine from event
    2.10 +// use state to generate Sync message if necessary
    2.11  
    2.12 -PEP_STATUS Sync_send(
    2.13 +PEP_STATUS Sync_notify(
    2.14          PEP_SESSION session, 
    2.15          Sync_PR fsm,
    2.16          int message_type
     3.1 --- a/sync/gen_statemachine.ysl2	Thu Aug 09 17:33:39 2018 +0200
     3.2 +++ b/sync/gen_statemachine.ysl2	Thu Aug 09 17:41:22 2018 +0200
     3.3 @@ -52,10 +52,10 @@
     3.4              | PEP_STATUS «@name»(PEP_SESSION session);
     3.5          ||
     3.6  
     3.7 -        // send event to own state machine, use state to generate
     3.8 -        // «@name» message if necessary
     3.9 +        // notify state machine from event
    3.10 +        // use state to generate «@name» message if necessary
    3.11  
    3.12 -        PEP_STATUS «@name»_send(
    3.13 +        PEP_STATUS «@name»_notify(
    3.14                  PEP_SESSION session, 
    3.15                  «@name»_PR fsm,
    3.16                  int message_type
    3.17 @@ -189,7 +189,7 @@
    3.18              return status;
    3.19          }
    3.20  
    3.21 -        PEP_STATUS «@name»_send(
    3.22 +        PEP_STATUS «@name»_notify(
    3.23                  PEP_SESSION session, 
    3.24                  «@name»_PR fsm,
    3.25                  int message_type
    3.26 @@ -510,7 +510,7 @@
    3.27                  ||
    3.28  
    3.29                  «$fsm/@name»_SERVICE_LOG("send message", "«$name»");
    3.30 -                status = «$protocol/@name»_send(session, «$fsm/@id», «$name»);
    3.31 +                status = «$protocol/@name»_notify(session, «$fsm/@id», «$name»);
    3.32                  ||
    3.33              }
    3.34              otherwise