From: Ian Jackson Subject: [OSSTEST PATCH 19/29] Tcl: Provide get-chan-desc in daemonlib Date: Mon, 7 Sep 2015 17:08:17 +0100 Message-ID: <1441642107-21826-20-git-send-email-ian.jackson@eu.citrix.com> References: <1441642107-21826-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZYzAH-00072s-IA for xen-devel@lists.xenproject.org; Mon, 07 Sep 2015 16:21:05 +0000 In-Reply-To: <1441642107-21826-1-git-send-email-ian.jackson@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Provide a facility for the daemon main program to get the channel connection information. No caller yet. Signed-off-by: Ian Jackson --- v2: New patch --- tcl/daemonlib.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tcl/daemonlib.tcl b/tcl/daemonlib.tcl index d097624..55bc385 100644 --- a/tcl/daemonlib.tcl +++ b/tcl/daemonlib.tcl @@ -106,6 +106,11 @@ proc puts-chan-desc {chan m} { log "$desc $m" } +proc get-chan-desc {chan} { + upvar \#0 chandesc($chan) desc + return $desc +} + proc must-gets-chan {chan re} { if {[gets $chan l] <= 0} { error "NOT $chan $re ?" } puts-chan-desc $chan "<< $l" -- 1.7.10.4