command: add library command attribute for libosmo-sccp

Change-Id: I4439a414af05700cb1ccff7e7e5927ffc194d171
Related: SYS#4937, OS#1601
This commit is contained in:
Philipp Maier 2020-10-05 20:54:51 +02:00
parent c0745ebc28
commit 608b1a40ff
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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',
};
/*