From: Simon Rowe Date: Thu, 5 Nov 2015 11:39:05 +0000 (+0000) Subject: ocaml/xc: correct shutdown_reason enumeration X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=87a16694248e80195943741bb9f857edd6a6bf51;p=people%2Fliuw%2Flibxenctrl-split%2Fxen.git ocaml/xc: correct shutdown_reason enumeration As defined by the Xen public header the fifth value of shutdown_reason is watchdog. Signed-off-by: Simon Rowe Acked-by: David Scott --- diff --git a/tools/ocaml/libs/xc/xenctrl.ml b/tools/ocaml/libs/xc/xenctrl.ml index b7ba8b7ddc..beb95b82f2 100644 --- a/tools/ocaml/libs/xc/xenctrl.ml +++ b/tools/ocaml/libs/xc/xenctrl.ml @@ -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 diff --git a/tools/ocaml/libs/xc/xenctrl.mli b/tools/ocaml/libs/xc/xenctrl.mli index bc4af56a1d..8928a2e243 100644 --- a/tools/ocaml/libs/xc/xenctrl.mli +++ b/tools/ocaml/libs/xc/xenctrl.mli @@ -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