[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Rename XS_GET_DOMAIN_PATH to XS_GET_DOMAIN_PATH and add libxenstore binding.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 2a1b32bb4df411d19fbef55752a52c615baa0fa2
# Parent  3ba3e5fc2530c851cace7bfc22b31949cc9dce8b
Rename XS_GET_DOMAIN_PATH to XS_GET_DOMAIN_PATH and add libxenstore binding.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 3ba3e5fc2530 -r 2a1b32bb4df4 tools/xenstore/xenstored.h
--- a/tools/xenstore/xenstored.h        Mon Sep  5 15:46:12 2005
+++ b/tools/xenstore/xenstored.h        Mon Sep  5 16:00:03 2005
@@ -42,7 +42,7 @@
        XS_OP_READ_ONLY = XS_TRANSACTION_END,
        XS_INTRODUCE,
        XS_RELEASE,
-       XS_GETDOMAINPATH,
+       XS_GET_DOMAIN_PATH,
        XS_WRITE,
        XS_MKDIR,
        XS_RM,
diff -r 3ba3e5fc2530 -r 2a1b32bb4df4 tools/xenstore/xenstored_core.c
--- a/tools/xenstore/xenstored_core.c   Mon Sep  5 15:46:12 2005
+++ b/tools/xenstore/xenstored_core.c   Mon Sep  5 16:00:03 2005
@@ -140,7 +140,7 @@
        case XS_TRANSACTION_END: return "TRANSACTION_END";
        case XS_INTRODUCE: return "INTRODUCE";
        case XS_RELEASE: return "RELEASE";
-       case XS_GETDOMAINPATH: return "GETDOMAINPATH";
+       case XS_GET_DOMAIN_PATH: return "GET_DOMAIN_PATH";
        case XS_WRITE: return "WRITE";
        case XS_MKDIR: return "MKDIR";
        case XS_RM: return "RM";
@@ -1277,7 +1277,7 @@
                do_release(conn, onearg(in));
                break;
 
-       case XS_GETDOMAINPATH:
+       case XS_GET_DOMAIN_PATH:
                do_get_domain_path(conn, onearg(in));
                break;
 
diff -r 3ba3e5fc2530 -r 2a1b32bb4df4 tools/xenstore/xenstored_domain.c
--- a/tools/xenstore/xenstored_domain.c Mon Sep  5 15:46:12 2005
+++ b/tools/xenstore/xenstored_domain.c Mon Sep  5 16:00:03 2005
@@ -389,7 +389,7 @@
        if (!domain) 
                send_error(conn, ENOENT);
        else
-               send_reply(conn, XS_GETDOMAINPATH, domain->path,
+               send_reply(conn, XS_GET_DOMAIN_PATH, domain->path,
                           strlen(domain->path) + 1);
 }
 
diff -r 3ba3e5fc2530 -r 2a1b32bb4df4 tools/xenstore/xs.c
--- a/tools/xenstore/xs.c       Mon Sep  5 15:46:12 2005
+++ b/tools/xenstore/xs.c       Mon Sep  5 16:00:03 2005
@@ -613,6 +613,15 @@
        return xs_bool(xs_single(h, XS_RELEASE, domid_str, NULL));
 }
 
+char *xs_get_domain_path(struct xs_handle *h, domid_t domid)
+{
+       char domid_str[MAX_STRLEN(domid)];
+
+       sprintf(domid_str, "%u", domid);
+
+       return xs_single(h, XS_GET_DOMAIN_PATH, domid_str, NULL);
+}
+
 bool xs_shutdown(struct xs_handle *h)
 {
        bool ret = xs_bool(xs_single(h, XS_SHUTDOWN, "", NULL));
diff -r 3ba3e5fc2530 -r 2a1b32bb4df4 tools/xenstore/xs.h
--- a/tools/xenstore/xs.h       Mon Sep  5 15:46:12 2005
+++ b/tools/xenstore/xs.h       Mon Sep  5 16:00:03 2005
@@ -134,6 +134,10 @@
  */
 bool xs_release_domain(struct xs_handle *h, domid_t domid);
 
+/* Query the home path of a domain.
+ */
+char *xs_get_domain_path(struct xs_handle *h, domid_t domid);
+
 /* Only useful for DEBUG versions */
 char *xs_debug_command(struct xs_handle *h, const char *cmd,
                       void *data, unsigned int len);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.