From: Ian Campbell Subject: Re: [PATCH v6 07/13] libxl: convert libxl_device_nic_add to an async operation Date: Fri, 22 Jun 2012 13:01:53 +0100 Message-ID: <1340366513.26083.106.camel@zakaz.uk.xensource.com> References: <1339676475-33265-1-git-send-email-roger.pau@citrix.com> <1339676475-33265-8-git-send-email-roger.pau@citrix.com> <20452.22802.102071.107153@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20452.22802.102071.107153@mariner.uk.xensource.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: Ian Jackson Cc: "xen-devel@lists.xen.org" , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Fri, 2012-06-22 at 12:37 +0100, Ian Jackson wrote: > > > -DEFINE_DEVICES_ADD(disk) > > +DEFINE_DEVICES_ADD(disk, disk) > > +DEFINE_DEVICES_ADD(vif, nic) > > it seems to me that this is an anomaly which might be better fixed > than worked around. > > Should we rename the functions libxl_*nic* or the structures *vif* ? > Or should we rename both, to "net" perhaps ? If its a simple sed then I guess libxl_device_nic* is the answer -- but if it turns into another yakk shaving exercise then perhaps we can just live with it how it is. libxl_device_net would also have been acceptable but doesn't seem as analogous to libxl_device_disk to me and would have involved changing both halves. I don't like libxl_device_vif -- that's more an implementation thing -- cf. the TYOE_IOEMU vs TYPE_VIF conversation... Ian.