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] Added isDevControllerClass so that XendDomainInfo does n

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally. This may soon go, depending on how useful controller.py turns out to be.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Sep 2005 15:16:14 +0000
Delivery-date: Tue, 13 Sep 2005 15:15:14 +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 ewan@xxxxxxxxxxxxx
# Node ID 5aa6a2eff69fecdbc3d6c54e880ddd389ba1f735
# Parent  c5045197dcb78032bda1d9f1ecfdb8ceec42d618
Added isDevControllerClass so that XendDomainInfo does not need to store the 
same information internally.  This may soon go, depending on how useful 
controller.py turns out to be.

diff -r c5045197dcb7 -r 5aa6a2eff69f tools/python/xen/xend/server/controller.py
--- a/tools/python/xen/xend/server/controller.py        Tue Sep 13 13:48:22 2005
+++ b/tools/python/xen/xend/server/controller.py        Tue Sep 13 13:49:37 2005
@@ -62,6 +62,13 @@
     """
     cls.type = name
     getDevControllerTable().addDevControllerClass(cls)
+
+
+def isDevControllerClass(name):
+    """@return True if a device controller class has been registered with
+    the controller table under the given name."""
+    return name in getDevControllerTable().controllerClasses
+
 
 def createDevController(name, vm, recreate=False):
     return getDevControllerTable().createDevController(name, vm, 
recreate=recreate)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Added isDevControllerClass so that XendDomainInfo does not need to store the same information internally. This may soon go, depending on how useful controller.py turns out to be., Xen patchbot -unstable <=