diff options
author | Max <msuraev@sysmocom.de> | 2017-10-10 14:50:35 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-10-11 01:28:10 +0000 |
commit | 25cc407c5be8d3f130886353bf49836d19bebfe2 (patch) | |
tree | 512bbcc0bde7f27e42857616a7870d69b117fad6 /include | |
parent | e1ceb6f76740c12bc8529e0329dfc9dbf515fb3a (diff) |
ctrl: add oml-uptime command
Expose OML link uptime available via vts's "sh bts 0" command with the
new "bts.0.oml-uptime" ctrl command. To avoid code duplication, move
uptime computation into separate function and use it for both.
Change-Id: Iec405aa949d6a38a9c8e64cd7ee4b49fd416835d
Related: OS#2486
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/bsc/gsm_data.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/bsc/gsm_data.h b/include/osmocom/bsc/gsm_data.h index 429526dec..51b2c9845 100644 --- a/include/osmocom/bsc/gsm_data.h +++ b/include/osmocom/bsc/gsm_data.h @@ -657,6 +657,8 @@ extern const struct value_string bts_type_descs[_NUM_GSM_BTS_TYPE+1]; char *get_oml_status(const struct gsm_bts *bts); char *get_model_oml_status(const struct gsm_bts *bts); +unsigned long long bts_uptime(const struct gsm_bts *bts); + /* control interface handling */ int bsc_base_ctrl_cmds_install(void); |