sync/gen_statemachine.ysl2
changeset 608 3bf69b382303
parent 605 70e80b27b624
child 609 a22a400611ca
     1.1 --- a/sync/gen_statemachine.ysl2	Thu May 12 10:40:31 2016 +0200
     1.2 +++ b/sync/gen_statemachine.ysl2	Thu May 12 10:45:54 2016 +0200
     1.3 @@ -17,7 +17,10 @@
     1.4  
     1.5      #include "pEpEngine.h"
     1.6  
     1.7 -    typedef union _param { const pEp_identity *partner; const stringlist_t *keylist; } param_t;
     1.8 +    // types
     1.9 +
    1.10 +    typedef pEp_identity * Identity;
    1.11 +    typedef union _param { const Identity partner; const stringlist_t *keylist; } param_t;
    1.12  
    1.13      // error values
    1.14  
    1.15 @@ -40,7 +43,7 @@
    1.16  
    1.17      // actions
    1.18  
    1.19 -    `` for "set:distinct(state/event//action/@name)" | void «.»(const pEp_identity *partner);
    1.20 +    `` for "set:distinct(state/event//action/@name)" | void «.»(const Identity partner);
    1.21  
    1.22      // decoders
    1.23  
    1.24 @@ -55,7 +58,7 @@
    1.25      «@name»_state fsm_«@name»(
    1.26              «@name»_state state,
    1.27              «@name»_event event,
    1.28 -            const pEp_identity *partner
    1.29 +            const Identity partner
    1.30          )
    1.31      {
    1.32          switch (state) {