aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-10-05 20:54:51 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2020-10-06 16:42:58 +0200
commit608b1a40ff89f7ca8c99fe535a9d7fa159a0ccfb (patch)
treec9c4a8040be2107ad5438186bda8565a5bdb3a39
parentc0745ebc28b88bf78de59f4fbcd95efbd4e8d10b (diff)
command: add library command attribute for libosmo-sccp
-rw-r--r--include/osmocom/vty/command.h1
-rw-r--r--src/vty/command.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index 07ec2425..232da2c6 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -152,6 +152,7 @@ enum {
* 2. Brevity: shortenings and abbreviations are welcome!
* 3. Values are not flags but indexes, unlike CMD_ATTR_*.
* 4. Ordering: new entries added before _OSMO_CORE_LIB_ATTR_COUNT. */
+ OSMO_SCCP_LIB_ATTR_RSTRT_ASP,
/* Keep this floating entry last, it's needed for count check. */
_OSMO_CORE_LIB_ATTR_COUNT
diff --git a/src/vty/command.c b/src/vty/command.c
index 7752c919..faad9fe5 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -635,12 +635,15 @@ static const struct value_string cmd_attr_desc[] = {
static const char * const cmd_lib_attr_desc[32] = {
/* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] = \
* "Brief but meaningful description", */
+ [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = \
+ "This command applies on ASP restart",
};
/* Flag letters of attributes shared between the lib commands.
* NOTE: uppercase letters only, the rest is reserved for applications. */
static const char cmd_lib_attr_letters[32] = {
/* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] = 'X', */
+ [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = 'A',
};
/*