ia64/xen-unstable
changeset 1523:b3df007a98da
bitkeeper revision 1.990.2.5 (40d6e5b3zC98CstrrPt15opAjaQtkg)
Add domain control message types.
Add domain control message types.
author | mjw@wray-m-3.hpl.hp.com |
---|---|
date | Mon Jun 21 13:42:11 2004 +0000 (2004-06-21) |
parents | abaa8727dcb1 |
children | 63778f2314cb |
files | tools/xenmgr/lib/server/messages.py |
line diff
1.1 --- a/tools/xenmgr/lib/server/messages.py Mon Jun 21 13:41:32 2004 +0000 1.2 +++ b/tools/xenmgr/lib/server/messages.py Mon Jun 21 13:42:11 2004 +0000 1.3 @@ -142,6 +142,34 @@ netif_formats = { 1.4 msg_formats.update(netif_formats) 1.5 1.6 #============================================================================ 1.7 +CMSG_SUSPEND = 5 1.8 +CMSG_SHUTDOWN = 6 1.9 + 1.10 +CMSG_SHUTDOWN_HALT = 0 1.11 +CMSG_SHUTDOWN_POWEROFF = 1 1.12 +CMSG_SHUTDOWN_REBOOT = 2 1.13 + 1.14 +STOPCODE_shutdown = 0 1.15 +STOPCODE_reboot = 1 1.16 +STOPCODE_suspend = 2 1.17 + 1.18 +ctrlif_formats = { 1.19 + 'ctrlif_suspend_t': 1.20 + (CMSG_SUSPEND, 0, "??"), 1.21 + 1.22 + 'ctrlif_shutdown_halt_t': 1.23 + (CMSG_SHUTDOWN, CMSG_SHUTDOWN_HALT, "??"), 1.24 + 1.25 + 'ctrlif_shutdown_poweroff_t': 1.26 + (CMSG_SHUTDOWN, CMSG_SHUTDOWN_POWEROFF, "??"), 1.27 + 1.28 + 'ctrlif_shutdown_reboot_t': 1.29 + (CMSG_SHUTDOWN, CMSG_SHUTDOWN_REBOOT, "??"), 1.30 + } 1.31 + 1.32 +msg_formats.update(ctrlif_formats) 1.33 + 1.34 +#============================================================================ 1.35 1.36 class Msg: 1.37 pass