diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-04-29 19:38:52 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-04-29 19:38:52 +0100 |
commit | 147e14cc8e9003cb5d99a48f8f6461f7114e18a0 (patch) | |
tree | 03a2c803500ae1b00607c134a166678d0e2af2f9 /tools/libxl/libxl_paths.c | |
parent | 7720401043b22eaa0e6397d3456f9a782c8a4ee0 (diff) | |
download | xen-147e14cc8e9003cb5d99a48f8f6461f7114e18a0.tar.gz xen-147e14cc8e9003cb5d99a48f8f6461f7114e18a0.tar.bz2 xen-147e14cc8e9003cb5d99a48f8f6461f7114e18a0.zip |
libxl: Expose build-time install paths inside libxl.
Use this to construct the fully-qualified path to xenconsole.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_paths.c')
-rw-r--r-- | tools/libxl/libxl_paths.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/tools/libxl/libxl_paths.c b/tools/libxl/libxl_paths.c new file mode 100644 index 0000000000..ceb1d73265 --- /dev/null +++ b/tools/libxl/libxl_paths.c @@ -0,0 +1,61 @@ +/* + * 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_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; +} + |