<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/20460">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">command: add library command attribute for libosmo-sccp<br><br>Change-Id: I4439a414af05700cb1ccff7e7e5927ffc194d171<br>Related: SYS#4937, OS#1601<br>---<br>M include/osmocom/vty/command.h<br>M src/vty/command.c<br>2 files changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/60/20460/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/vty/command.h b/include/osmocom/vty/command.h</span><br><span>index 07ec242..232da2c 100644</span><br><span>--- a/include/osmocom/vty/command.h</span><br><span>+++ b/include/osmocom/vty/command.h</span><br><span>@@ -152,6 +152,7 @@</span><br><span>       * 2. Brevity: shortenings and abbreviations are welcome!</span><br><span>     * 3. Values are not flags but indexes, unlike CMD_ATTR_*.</span><br><span>    * 4. Ordering: new entries added before _OSMO_CORE_LIB_ATTR_COUNT. */</span><br><span style="color: hsl(120, 100%, 40%);">+        OSMO_SCCP_LIB_ATTR_RSTRT_ASP,</span><br><span> </span><br><span>    /* Keep this floating entry last, it's needed for count check. */</span><br><span>        _OSMO_CORE_LIB_ATTR_COUNT</span><br><span>diff --git a/src/vty/command.c b/src/vty/command.c</span><br><span>index 7752c91..f21261b 100644</span><br><span>--- a/src/vty/command.c</span><br><span>+++ b/src/vty/command.c</span><br><span>@@ -635,12 +635,15 @@</span><br><span> static const char * const cmd_lib_attr_desc[32] = {</span><br><span>    /* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] = \</span><br><span>       *      "Brief but meaningful description", */</span><br><span style="color: hsl(120, 100%, 40%);">+      [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] = \</span><br><span style="color: hsl(120, 100%, 40%);">+            "This command applies on ASP restart",</span><br><span> };</span><br><span> </span><br><span> /* Flag letters of attributes shared between the lib commands.</span><br><span>  * NOTE: uppercase letters only, the rest is reserved for applications. */</span><br><span> static const char cmd_lib_attr_letters[32] = {</span><br><span>         /* [OSMO_LIBNAME_LIB_ATTR_ATTRNAME] =           'X', */</span><br><span style="color: hsl(120, 100%, 40%);">+       [OSMO_SCCP_LIB_ATTR_RSTRT_ASP] =                'A'</span><br><span> };</span><br><span> </span><br><span> /*</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/20460">change 20460</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/20460"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I4439a414af05700cb1ccff7e7e5927ffc194d171 </div>
<div style="display:none"> Gerrit-Change-Number: 20460 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>