From 608b1a40ff89f7ca8c99fe535a9d7fa159a0ccfb Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Mon, 5 Oct 2020 20:54:51 +0200 Subject: [PATCH] command: add library command attribute for libosmo-sccp Change-Id: I4439a414af05700cb1ccff7e7e5927ffc194d171 Related: SYS#4937, OS#1601 --- include/osmocom/vty/command.h | 1 + src/vty/command.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h index 07ec2425b..232da2c64 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 7752c919f..faad9fe50 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', }; /*