<p>fixeria would like Hoernchen to <strong>review</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/19576">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">vty/command: introduce CMD_ATTR_REQ_RESTART attribute<br><br>Change-Id: Ie4ae73936ef08755f7bf0d1095d4d649adf498ae<br>Related: SYS#4937<br>---<br>M include/osmocom/vty/command.h<br>1 file 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/76/19576/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 da8d202..a277ca5 100644</span><br><span>--- a/include/osmocom/vty/command.h</span><br><span>+++ b/include/osmocom/vty/command.h</span><br><span>@@ -137,6 +137,7 @@</span><br><span> enum {</span><br><span>     CMD_ATTR_DEPRECATED     = (1 << 0),</span><br><span>    CMD_ATTR_HIDDEN         = (1 << 1),</span><br><span style="color: hsl(120, 100%, 40%);">+     CMD_ATTR_REQ_RESTART    = (1 << 2),</span><br><span> };</span><br><span> </span><br><span> /*! Structure of a command element */</span><br><span>@@ -240,6 +241,9 @@</span><br><span> #define DEFUN_DEPRECATED(funcname, cmdname, cmdstr, helpstr) \</span><br><span>   DEFUN_ATTR (funcname, cmdname, cmdstr, helpstr, CMD_ATTR_DEPRECATED)</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+#define DEFUN_REQ_RESTART(funcname, cmdname, cmdstr, helpstr) \</span><br><span style="color: hsl(120, 100%, 40%);">+  DEFUN_ATTR (funcname, cmdname, cmdstr, helpstr, CMD_ATTR_REQ_RESTART)</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* DEFUN_NOSH for commands that vtysh should ignore */</span><br><span> #define DEFUN_NOSH(funcname, cmdname, cmdstr, helpstr) \</span><br><span>   DEFUN(funcname, cmdname, cmdstr, helpstr)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/19576">change 19576</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/+/19576"/><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: Ie4ae73936ef08755f7bf0d1095d4d649adf498ae </div>
<div style="display:none"> Gerrit-Change-Number: 19576 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>