Stub out python client routes

This commit is contained in:
zvecr
2022-07-17 02:58:14 +01:00
parent 2a1bfafa1a
commit e4a41e8795
5 changed files with 72 additions and 4 deletions
@@ -0,0 +1,9 @@
# TODO: assumption of only one level of children
{%- for id, route in xap.routes | dictsort %}
{%- if route.routes %}
# {{route.define}}
{%- for subid, subroute in route.routes | dictsort %}
{{route.define}}_{{subroute.define}} = b'\x{{ '%02d' % id|int(base=16) }}\x{{ '%02d' % subid|int(base=16) }}'
{%- endfor %}
{%- endif %}
{%- endfor %}