WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Rename XS_GET_DOMAIN_PATH to XS_GET_DOMAIN_PATH and add

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Rename XS_GET_DOMAIN_PATH to XS_GET_DOMAIN_PATH and add libxenstore binding.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 05 Sep 2005 17:22:10 +0000
Delivery-date: Mon, 05 Sep 2005 17:20:41 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Rename XS_GET_DOMAIN_PATH to XS_GET_DOMAIN_PATH and add libxenstore binding., Xen patchbot -unstable <=