diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2020-11-03 23:03:33 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-11-06 10:23:44 +0000 |
commit | f128654c7f9a584a6bb33454ab70edd0add3e54a (patch) | |
tree | 2258808892ac73a00ba88538feb6f57a093f5b7d /include | |
parent | cce88282388f13240f36cc0ec003046117e96155 (diff) |
ns2: Add gprs_ns2_nsvc_state_name() to get the current state of a VC
Change-Id: I4c4c5b9142d7240ed452218e263ba12e2b70d1a0
Related: SYS#4998
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/gprs/gprs_ns2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_ns2.h b/include/osmocom/gprs/gprs_ns2.h index ffc2ad8e..728ca9f9 100644 --- a/include/osmocom/gprs/gprs_ns2.h +++ b/include/osmocom/gprs/gprs_ns2.h @@ -192,9 +192,12 @@ struct gprs_ns2_vc *gprs_ns2_nsvc_by_sockaddr_nse( struct gprs_ns2_nse *nse, const struct osmo_sockaddr *sockaddr); void gprs_ns2_start_alive_all_nsvcs(struct gprs_ns2_nse *nse); + +/* VC information */ const char *gprs_ns2_ll_str(struct gprs_ns2_vc *nsvc); char *gprs_ns2_ll_str_buf(char *buf, size_t buf_len, struct gprs_ns2_vc *nsvc); char *gprs_ns2_ll_str_c(const void *ctx, struct gprs_ns2_vc *nsvc); +const char *gprs_ns2_nsvc_state_name(struct gprs_ns2_vc *nsvc); /* vty */ int gprs_ns2_vty_init(struct gprs_ns2_inst *nsi, |