From: Ian Jackson Subject: Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line Date: Wed, 23 Mar 2011 16:57:17 +0000 Message-ID: <19850.9837.692296.511537@mariner.uk.xensource.com> References: <825082d71dd594e0eee4.1300723203@localhost.localdomain> <19850.5922.324253.63331@mariner.uk.xensource.com> <1300895962.5195.12.camel@cthulhu.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1300895962.5195.12.camel@cthulhu.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest out of line"): > Why should it be inline? In general, I think it's fine to have trivial operations like this inlined. Things which one would otherwise maybe use a macro for. > What actually led to the changes was that a subsequent patch removed the > indirect dependency which defined DOMID_FIRST_RESERVED. Rather than > finding and adding the appropriate xen header to libxl.h (which is a > valid option) I decided that the function shouldn't have been inline in > the first place... I think it's fine to import Xen headers into libxl.h. Ian.