diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-05-25 19:13:13 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-05-25 19:13:13 +0200 |
commit | cac78fe9e95d8f7f9eea07f99b910409e10854bc (patch) | |
tree | 7ae26e2191f1b29bdd3ea9c1bf5007d4637d9393 | |
parent | d517db06ced45bbe0a70799487964e52edd8a375 (diff) |
Add value_string for input signal names (e1inp_signal_names)
Change-Id: I1662d4a969d2d12677646f3120b25be9a20c6d22
-rw-r--r-- | include/osmocom/abis/e1_input.h | 2 | ||||
-rw-r--r-- | src/e1_input.c | 11 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/osmocom/abis/e1_input.h b/include/osmocom/abis/e1_input.h index 8501d5c..1a701f9 100644 --- a/include/osmocom/abis/e1_input.h +++ b/include/osmocom/abis/e1_input.h @@ -212,6 +212,8 @@ enum e1inp_signal_input { S_L_INP_LINE_NOALARM, }; +extern const struct value_string e1inp_signal_names[]; + /* register a driver with the E1 core */ int e1inp_driver_register(struct e1inp_driver *drv); diff --git a/src/e1_input.c b/src/e1_input.c index 1e1252e..40e36b4 100644 --- a/src/e1_input.c +++ b/src/e1_input.c @@ -803,6 +803,17 @@ static int e1i_sig_cb(unsigned int subsys, unsigned int signal, return 0; } +const struct value_string e1inp_signal_names[] = { + { S_L_INP_NONE, "NONE" }, + { S_L_INP_TEI_UP, "TEI-UP" }, + { S_L_INP_TEI_DN, "TEI-DOWN" }, + { S_L_INP_TEI_UNKNOWN, "TEI-UNKNOWN" }, + { S_L_INP_LINE_INIT, "LINE-INIT" }, + { S_L_INP_LINE_ALARM, "LINE-ALARM" }, + { S_L_INP_LINE_NOALARM, "LINE-NOALARM" }, + { 0, NULL } +}; + void e1inp_misdn_init(void); void e1inp_dahdi_init(void); void e1inp_ipaccess_init(void); |