]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
ocaml/xc: correct shutdown_reason enumeration
authorSimon Rowe <simon.rowe@eu.citrix.com>
Thu, 5 Nov 2015 11:39:05 +0000 (11:39 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 16 Nov 2015 11:10:43 +0000 (11:10 +0000)
As defined by the Xen public header the fifth value of
shutdown_reason is watchdog.

Signed-off-by: Simon Rowe <simon.rowe@eu.citrix.com>
Acked-by: David Scott <dave@recoil.org>
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli

index b7ba8b7ddc4b827c46235c5b33438e0eb0c9a366..beb95b82f2676d7dcca7cf458f8258c47af58557 100644 (file)
@@ -89,7 +89,7 @@ type compile_info =
        compile_date : string;
 }
 
-type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Halt
+type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Watchdog
 
 type domain_create_flag = CDF_HVM | CDF_HAP
 
index bc4af56a1d7df069e65f073edbda59a91159dcac..8928a2e243868e2ee3770e2a436f2af828e1c08c 100644 (file)
@@ -61,7 +61,7 @@ type compile_info = {
   compile_domain : string;
   compile_date : string;
 }
-type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Halt
+type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Watchdog
 
 type domain_create_flag = CDF_HVM | CDF_HAP