diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-14 17:59:53 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-14 18:05:41 +0200 |
commit | 197dea95ff55acd86d5800f5a1cf7e339b24064d (patch) | |
tree | a59916e0882b4fc876c331e3d58e76d4c4585c08 /openbsc/include | |
parent | d94d6a02d5e50c7d4b4bcddcb59ffdad23d7757b (diff) |
VTY: Introduce common code to add 'description' to objects like BTS
There is now an option to add a human-readable description to objects
that are configured in the VTY.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 4 | ||||
-rw-r--r-- | openbsc/include/openbsc/vty.h | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index 91527c933..5cd43d712 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -322,6 +322,8 @@ struct gsm_bts_trx { struct gsm_bts *bts; /* number of this TRX in the BTS */ u_int8_t nr; + /* human readable name / description */ + char *description; /* how do we talk RSL with this TRX? */ struct gsm_e1_subslot rsl_e1_link; u_int8_t rsl_tei; @@ -428,6 +430,8 @@ struct gsm_bts { struct gsm_network *network; /* number of ths BTS in network */ u_int8_t nr; + /* human readable name / description */ + char *description; /* Cell Identity */ u_int16_t cell_identity; /* location area code of this BTS */ diff --git a/openbsc/include/openbsc/vty.h b/openbsc/include/openbsc/vty.h index f1b1148ad..55f54612b 100644 --- a/openbsc/include/openbsc/vty.h +++ b/openbsc/include/openbsc/vty.h @@ -1,10 +1,18 @@ #ifndef OPENBSC_VTY_H #define OPENBSC_VTY_H +#include <vty/vty.h> +#include <vty/buffer.h> + struct gsm_network; struct vty; void openbsc_vty_add_cmds(void); void openbsc_vty_print_statistics(struct vty *vty, struct gsm_network *); +struct buffer *vty_argv_to_buffer(int argc, const char *argv[], int base); + +extern struct cmd_element cfg_description_cmd; +extern struct cmd_element cfg_no_description_cmd; + #endif |