aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_utils.h
diff options
context:
space:
mode:
authorChristoph Egger <Christoph.Egger@amd.com>2011-01-06 14:25:10 +0000
committerChristoph Egger <Christoph.Egger@amd.com>2011-01-06 14:25:10 +0000
commitd8318dc19b559da05efc2cccabe4290dc3e5d446 (patch)
treec7fe235284fbc34d3b01c0037a113f1043c5b58c /tools/libxl/libxl_utils.h
parentf1bbc236c60a39b2c52f50d912d8a4f06ad4bf4b (diff)
downloadxen-d8318dc19b559da05efc2cccabe4290dc3e5d446.tar.gz
xen-d8318dc19b559da05efc2cccabe4290dc3e5d446.tar.bz2
xen-d8318dc19b559da05efc2cccabe4290dc3e5d446.zip
libxl: Implement libxl_basename()
This patch implements libxl_basename() as a portable replacement for GNU vs. POSIX basename. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.h')
-rw-r--r--tools/libxl/libxl_utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/libxl/libxl_utils.h b/tools/libxl/libxl_utils.h
index a8f7f105c1..075197e4cb 100644
--- a/tools/libxl/libxl_utils.h
+++ b/tools/libxl/libxl_utils.h
@@ -18,6 +18,7 @@
#include "libxl.h"
+const char *libxl_basename(const char *name); /* returns string from strdup */
unsigned long libxl_get_required_shadow_memory(unsigned long maxmem_kb, unsigned int smp_cpus);
int libxl_name_to_domid(libxl_ctx *ctx, const char *name, uint32_t *domid);
char *libxl_domid_to_name(libxl_ctx *ctx, uint32_t domid);