From: Ian Campbell Subject: Re: [PATCH 15/20] libxl: include <_libxl_paths.h> in libxl_internal.h Date: Tue, 20 Mar 2012 12:13:10 +0000 Message-ID: <1332245590.9223.236.camel@zakaz.uk.xensource.com> References: <1331915215-10477-1-git-send-email-ian.jackson@eu.citrix.com> <1331915215-10477-16-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: In-Reply-To: <1331915215-10477-16-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: Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-03-16 at 16:26 +0000, Ian Jackson wrote: > Ie, we permit general code in libxl direct access to the manifest > constants such as XEN_RUN_DIR. This simplifies their use in (eg) > format strings. > > This might be controversial because it will make it difficult to make > any of these runtime-configurable later without changing lots of use > sites. But I don't think it's likely we'll want to do that. I don't have any particular feeling one way or the other about this Acked-by: Ian Campbell > For the moment, leave existing call sites of all the functions in > libxl_paths.c unchanged. The simplified use arrangements can be used > in new code and when we update call sites for other reasons. > > Signed-off-by: Ian Jackson > --- > tools/libxl/libxl_internal.h | 1 + > tools/libxl/libxl_paths.c | 1 - > 2 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h > index 69b6f74..983de3e 100644 > --- a/tools/libxl/libxl_internal.h > +++ b/tools/libxl/libxl_internal.h > @@ -51,6 +51,7 @@ > #include > > #include "libxl.h" > +#include "_libxl_paths.h" > > #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) > #define _hidden __attribute__((visibility("hidden"))) > diff --git a/tools/libxl/libxl_paths.c b/tools/libxl/libxl_paths.c > index a95d29f..388b344 100644 > --- a/tools/libxl/libxl_paths.c > +++ b/tools/libxl/libxl_paths.c > @@ -14,7 +14,6 @@ > > #include "libxl_osdeps.h" /* must come before any other headers */ > #include "libxl_internal.h" > -#include "_libxl_paths.h" > > const char *libxl_sbindir_path(void) > {