Change in libosmocore[master]: command: add library command attribute for libosmo-sccp

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Oct 6 20:41:30 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/20460 )

Change subject: command: add library command attribute for libosmo-sccp
......................................................................

command: add library command attribute for libosmo-sccp

Change-Id: I4439a414af05700cb1ccff7e7e5927ffc194d171
Related: SYS#4937, OS#1601
---
M include/osmocom/vty/command.h
M src/vty/command.c
2 files changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h
index 07ec242..232da2c 100644
--- a/include/osmocom/vty/command.h
+++ b/include/osmocom/vty/command.h
@@ -152,6 +152,7 @@
 	 * 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 7752c91..faad9fe 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -635,12 +635,15 @@
 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',
 };
 
 /*

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/20460
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I4439a414af05700cb1ccff7e7e5927ffc194d171
Gerrit-Change-Number: 20460
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201006/5c18aade/attachment.htm>


More information about the gerrit-log mailing list