# HG changeset patch
# User Dan Smith <danms(a)us.ibm.com>
# Date 1228767402 28800
# Node ID 205d33ceaa23a3a116e790590b0109c77c5683aa
# Parent 780ad920644642f2fa54006b67942d1cfb2992c3
Make VSSD provider expose ClockOffset property
Signed-off-by: Dan Smith <danms(a)us.ibm.com>
diff -r 780ad9206446 -r 205d33ceaa23 src/Virt_VSSD.c
--- a/src/Virt_VSSD.c Mon Dec 08 12:16:34 2008 -0800
+++ b/src/Virt_VSSD.c Mon Dec 08 12:16:42 2008 -0800
@@ -124,6 +124,16 @@
CMSetProperty(inst, "AutomaticRecoveryAction",
(CMPIValue *)&dominfo->on_crash, CMPI_uint16);
+
+ if (dominfo->clock != NULL) {
+ uint16_t clock = VSSD_CLOCK_UTC;
+
+ if (STREQC(dominfo->clock, "localtime"))
+ clock = VSSD_CLOCK_LOC;
+
+ CMSetProperty(inst, "ClockOffset",
+ (CMPIValue *)&clock, CMPI_uint16);
+ }
if ((dominfo->type == DOMAIN_XENFV) ||
(dominfo->type == DOMAIN_KVM))
diff -r 780ad9206446 -r 205d33ceaa23 src/Virt_VSSD.h
--- a/src/Virt_VSSD.h Mon Dec 08 12:16:34 2008 -0800
+++ b/src/Virt_VSSD.h Mon Dec 08 12:16:42 2008 -0800
@@ -21,6 +21,9 @@
#ifndef __VIRT_VSSD_H
#define __VIRT_VSSD_H
+#define VSSD_CLOCK_UTC 0
+#define VSSD_CLOCK_LOC 1
+
CMPIStatus get_vssd_by_ref(const CMPIBroker *broker,
const CMPIObjectPath *reference,
CMPIInstance **_inst);