<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">(1 comment)</p><p style="white-space: pre-wrap; word-wrap: break-word;">Though the node at which to locate T timer vty config is kept<br>generic, there is no way to define more than one such set of timer<br>definitions per main(). </p></blockquote><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">IIUC there might be a foo/T3 and a bar/T3<br>within the same program? In that case I need to use generic timer<br>definitions handles instead of singleton globals.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">there's two way to approach this:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">1) have one "timer-definitons" root node and then per-subsystem nodes underneath it, so<br>   you have something like timer-definitions -> bsc</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">2) offer infrastructure to subsystems so that they can "instantiate" a timer node underneath their VTY node<br>    so you end up having something like network -> bcs -> bts -> timer-definitions</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Given that there are objects of which we have multiple instances (like multiple BTSs in a BSC), it would actually make sense to go for approach number 2.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But yes, any of those will be moving away from the idea of having one global namespace of timers.</p><p><a href="https://gerrit.osmocom.org/12717">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12717">change 12717</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/12717"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ibd6b1ed7f1bd6e1f2e0fde53352055a4468f23e5 </div>
<div style="display:none"> Gerrit-Change-Number: 12717 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 30 Jan 2019 17:05:52 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-HasLabels: No </div>