sync/gen_statemachine.ysl2
branchkeysync
changeset 939 ed7dfdae3031
parent 811 71418dbb493c
child 951 dec407deb10e
     1.1 --- a/sync/gen_statemachine.ysl2	Wed Jul 27 16:20:31 2016 +0200
     1.2 +++ b/sync/gen_statemachine.ysl2	Fri Jul 29 10:45:13 2016 +0200
     1.3 @@ -37,7 +37,8 @@
     1.4          // types
     1.5  
     1.6          typedef pEp_identity * Identity;
     1.7 -        typedef union _param { const Identity partner; const stringlist_t *keylist; } param_t;
     1.8 +        typedef stringlist_t * Stringlist;
     1.9 +        typedef union _param { Identity partner; stringlist_t *keylist; } param_t;
    1.10  
    1.11          // error values
    1.12  
    1.13 @@ -70,7 +71,7 @@
    1.14          // actions
    1.15  
    1.16          `` const "name", "@name"
    1.17 -        `` for "func:distinctName(//action)" | PEP_STATUS «@name»(PEP_SESSION session, «$name»_state state, const Identity partner);
    1.18 +        `` for "func:distinctName(//action)" | PEP_STATUS «@name»(PEP_SESSION session, «$name»_state state, Identity partner, void *extra);
    1.19  
    1.20          // state machine
    1.21  
    1.22 @@ -78,7 +79,7 @@
    1.23                  PEP_SESSION session,
    1.24                  «@name»_state state,
    1.25                  «@name»_event event,
    1.26 -                const Identity partner,
    1.27 +                Identity partner,
    1.28                  «@name»_state state_partner
    1.29              );
    1.30  
    1.31 @@ -131,7 +132,7 @@
    1.32                  PEP_SESSION session,
    1.33                  «@name»_state state,
    1.34                  «@name»_event event,
    1.35 -                const Identity partner,
    1.36 +                Identity partner,
    1.37                  «@name»_state state_partner
    1.38              )
    1.39          {
    1.40 @@ -173,7 +174,7 @@
    1.41              when "parm" > «name(parm/*)»
    1.42              otherwise > NULL
    1.43          }
    1.44 -        > );\n
    1.45 +        > , NULL);\n
    1.46      }
    1.47  
    1.48      template "transition" | return «@target»;