diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2020-09-21 04:50:05 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2020-10-15 04:54:02 +0200 |
commit | 1994355229d527fc050be2f5fb63f2835ec21a05 (patch) | |
tree | 808c5585d515c62ba305e32aa2876c1b6df0a776 | |
parent | 07903460738dad8014c1d0e5227371d195e8161a (diff) |
new_fsm fu
Change-Id: Ie3c6e63510a399d57a752a481a032d0022888885
-rwxr-xr-x | contrib/new_fsm.py | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/contrib/new_fsm.py b/contrib/new_fsm.py index 5e836f33..71779e56 100755 --- a/contrib/new_fsm.py +++ b/contrib/new_fsm.py @@ -190,24 +190,28 @@ fsm = FSM(head='#include <osmocom/bsc/lcs.h>', with open('lcs_loc_req.c', 'w') as f: f.write(fsm.to_c()) -fsm = FSM(head='#include <osmocom/bsc/lcs.h>', - prefix = 'lcs_ta_req', - priv = 'lcs_ta_req', +fsm = FSM(head='#include <osmocom/smlc/smlc_subscr_conn.h>', + prefix = 'smlc_subscr_conn', + priv = 'smlc_subscr_conn', states = ( State('init', - ('start',), - ('wait_ta', 'got_ta'), + (), + ('conn_req',), onenter=False, ), - State('wait_ta', - ('ta',), - ('got_ta', ), + State('conn_req', + (), + ('connected', ), + ), + State('connected', + ('unused'), + ('releasing'), ), - State('got_ta', + State('releasing', (), (), ), ) ) -with open('lcs_ta_req.c', 'w') as f: +with open('smlc_subscr_conn.c', 'w') as f: f.write(fsm.to_c()) |