From: Ian Jackson Subject: Re: [PATCH v6 04/11] libxl: move libxl__device_from_disk to libxl_internal.c Date: Fri, 18 May 2012 16:23:43 +0100 Message-ID: <20406.27007.38309.372960@mariner.uk.xensource.com> References: <1337350125-30394-4-git-send-email-stefano.stabellini@eu.citrix.com> <4FB662F5.2010704@citrix.com> <1337353377.22316.127.camel@zakaz.uk.xensource.com> <4FB667E4.6010301@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FB667E4.6010301@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: Roger Pau Monne Cc: "xen-devel@lists.xensource.com" , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Roger Pau Monne writes ("Re: [Xen-devel] [PATCH v6 04/11] libxl: move libxl__device_from_disk to libxl_internal.c"): > In my hotplug series I'm moving most libxl_device_{...}_add to provide > an internal implementation that takes an ao, making something quite > similar to what Stefano does, if I start moving all those to > libxl_internal we will fill this file with functions that could be > somewhere else (libxl_device). I understand that the libxl policy is put > functions where they seem to belong (device related functions to > libxl_device, domain related ones to libxl_dom...), and if they fit in > none of this categories then put them in libxl_internal or create a new > file. > > We can leave it in libxl_internal for now, and I will move it on my series. I don't think we have a policy. I think at this stage I would much prefer not to move whole functions from one file to another for purely cosmetic reasons. (It's a different question if you need to move the body of a function into the middle of another one, or something.) Ian.