aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/xs_lib.c
diff options
context:
space:
mode:
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-09-03 16:54:38 +0000
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>2005-09-03 16:54:38 +0000
commita916bf616cf979460e6bf22af3a3fa9bef0dbb4d (patch)
treeef59bb21ed906c6e00f7451e67504881429064ab /tools/xenstore/xs_lib.c
parentb8ea6055008b3be846fb2b0301713d18539ee5b0 (diff)
downloadxen-a916bf616cf979460e6bf22af3a3fa9bef0dbb4d.tar.gz
xen-a916bf616cf979460e6bf22af3a3fa9bef0dbb4d.tar.bz2
xen-a916bf616cf979460e6bf22af3a3fa9bef0dbb4d.zip
Add support in libxenstore for using the xenbus_dev store connection.
Also add simple read/write/rm clients for command line access to the store (using the xenbus_dev store connection). Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
Diffstat (limited to 'tools/xenstore/xs_lib.c')
-rw-r--r--tools/xenstore/xs_lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/xenstore/xs_lib.c b/tools/xenstore/xs_lib.c
index 629eca5948..4c355b9902 100644
--- a/tools/xenstore/xs_lib.c
+++ b/tools/xenstore/xs_lib.c
@@ -66,6 +66,12 @@ const char *xs_daemon_transactions(void)
return buf;
}
+const char *xs_domain_dev(void)
+{
+ char *s = getenv("XENSTORED_DOMAIN_DEV");
+ return (s ? s : "/proc/xen/xenbus");
+}
+
/* Simple routines for writing to sockets, etc. */
bool xs_write_all(int fd, const void *data, unsigned int len)
{