nicer
authorVolker Birk <vb@pep-project.org>
Wed, 18 May 2016 08:46:40 +0200
changeset 6513543ea5e8b02
parent 650 accc0ad7d32c
child 652 ccc02be8a27d
child 658 244734164566
nicer
asn.1/devicegroup.asn1
sync/gen_actions_skeleton.ysl2
     1.1 --- a/asn.1/devicegroup.asn1	Wed May 18 00:05:39 2016 +0200
     1.2 +++ b/asn.1/devicegroup.asn1	Wed May 18 08:46:40 2016 +0200
     1.3 @@ -14,7 +14,7 @@
     1.4  HandshakeRequest ::= SEQUENCE {
     1.5      header Header,
     1.6      me Identity,
     1.7 -    you Identity
     1.8 +    partner Identity
     1.9  }
    1.10  
    1.11  OwnKeys ::= SEQUENCE {
     2.1 --- a/sync/gen_actions_skeleton.ysl2	Wed May 18 00:05:39 2016 +0200
     2.2 +++ b/sync/gen_actions_skeleton.ysl2	Wed May 18 08:46:40 2016 +0200
     2.3 @@ -36,7 +36,7 @@
     2.4      #include <assert.h>
     2.5      #include "sync_fsm.h"
     2.6      #include "map_asn1.h"
     2.7 -    `` for "func:distinctName(//action)" if "substring(@name, 0, 5) = 'send'" | #include "../asn.1/«substring(@name, 5, 255)».h"
     2.8 +    `` for "func:distinctName(//action)" if "substring(@name, 1, 4) = 'send'" | #include "../asn.1/«substring(@name, 5, 255)».h"
     2.9  
    2.10      `` for "func:distinctName(//action)" call "action" with "action", ".";
    2.11  
    2.12 @@ -46,7 +46,7 @@
    2.13      function "action" {
    2.14          param "action";
    2.15          choose {
    2.16 -            when "substring($action/@name, 0, 5) = 'send'"
    2.17 +            when "substring($action/@name, 1, 4) = 'send'"
    2.18                  call "send_action" with "action", "$action";
    2.19              otherwise
    2.20                  call "other_action" with "action", "$action";