From: Stefano Stabellini Subject: Re: [PATCH] implement xl vncviewer Date: Wed, 21 Jul 2010 17:21:55 +0100 Message-ID: References: <1279634315.1723.1927.camel@qabil.uk.xensource.com> <19527.6203.817621.776690@mariner.uk.xensource.com> <1279727848.1723.1986.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-path: In-Reply-To: <1279727848.1723.1986.camel@qabil.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Gianni Tedesco (3P)" Cc: Xen Devel , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 21 Jul 2010, Gianni Tedesco (3P) wrote: > On Wed, 2010-07-21 at 16:54 +0100, Ian Jackson wrote: > > Gianni Tedesco writes ("[Xen-devel] [PATCH] implement xl vncviewer"): > > > +int libxl_vncviewer_exec(struct libxl_ctx *ctx, uint32_t domid, int autopass) > > > +{ > > > > I think this is the wrong interface. What if I'm a management > > interface and I want to provide a vnc: URL or something ? > > > > The host/address and port information should be extractable from > > libxl. > > > > Ian. > > I was following convention used for xenconsole exec. I think a > management interface might want to find pty node too for example. > > I could implement a further patch which includes a set of calls to > expose orthogonal bits of functionality. We could definitely improve the interface splitting the current libxl_vncviewer_exec in two functions, one to get the vnc connection details and the other one to fork and exec vncviewer.