Files
xen/tools/libxl/libxl_paths.c
T
Ian Jackson 8fc051a10f libxl: move a lot more includes into libxl_internal.h
Move a lot of
  #include <stdfoo.h>
from individual files into libxl_internal.h.  This helps avoid
portability mistakes where necessary system headers are omitted from
individual files, and is also of course a convenience when developing.

Also add
  #include "libxl_osdeps.h" /* must come before any other headers */
to the top of most libxl*.c files, so that anyone who adds any headers
before libxl_internal.h will put the in the right place.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
2012-01-13 16:54:19 +00:00

86 lines
1.6 KiB
C

/*
* Copyright (C) 2010 Citrix Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation; version 2.1 only. with the special
* exception on linking described in file LICENSE.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*/
#include "libxl_osdeps.h" /* must come before any other headers */
#include "libxl_internal.h"
#include "_libxl_paths.h"
const char *libxl_sbindir_path(void)
{
return SBINDIR;
}
const char *libxl_bindir_path(void)
{
return BINDIR;
}
const char *libxl_libexec_path(void)
{
return LIBEXEC;
}
const char *libxl_libdir_path(void)
{
return LIBDIR;
}
const char *libxl_sharedir_path(void)
{
return SHAREDIR;
}
const char *libxl_private_bindir_path(void)
{
return PRIVATE_BINDIR;
}
const char *libxl_xenfirmwaredir_path(void)
{
return XENFIRMWAREDIR;
}
const char *libxl_xen_config_dir_path(void)
{
return XEN_CONFIG_DIR;
}
const char *libxl_xen_script_dir_path(void)
{
return XEN_SCRIPT_DIR;
}
const char *libxl_lock_dir_path(void)
{
return XEN_LOCK_DIR;
}
const char *libxl_run_dir_path(void)
{
return XEN_RUN_DIR;
}
const char *libxl_xenpaging_dir_path(void)
{
return XEN_PAGING_DIR;
}
/*
* Local variables:
* mode: C
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/