# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1224692656 25200
# Node ID d474e34c81bcc1f730db3ac0f04262cc9f7e538a
# Parent c403069bb8b9d31a3890156984ea82f6c42518be
Add PointingDevice schema and input device type.
PointingDevice will represent the input device. Using resource type 13
("I/O Device") as the device type.
Signed-off-by: Kaitlin Rupert <karupert(a)us.ibm.com>
diff -r c403069bb8b9 -r d474e34c81bc Makefile.am
--- a/Makefile.am Wed Nov 05 15:13:38 2008 -0800
+++ b/Makefile.am Wed Oct 22 09:24:16 2008 -0700
@@ -47,7 +47,8 @@
schema/ConsoleRedirectionServiceCapabilities.mof \
schema/ServiceAffectsElement.mof \
schema/KVMRedirectionSAP.mof \
- schema/DisplayController.mof
+ schema/DisplayController.mof \
+ schema/PointingDevice.mof
INTEROP_MOFS = \
schema/ComputerSystem.mof \
@@ -105,7 +106,8 @@
schema/ConsoleRedirectionServiceCapabilities.registration \
schema/ServiceAffectsElement.registration \
schema/KVMRedirectionSAP.registration \
- schema/DisplayController.registration
+ schema/DisplayController.registration \
+ schema/PointingDevice.registration
INTEROP_REGS = \
schema/RegisteredProfile.registration \
diff -r c403069bb8b9 -r d474e34c81bc schema/PointingDevice.mof
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/PointingDevice.mof Wed Oct 22 09:24:16 2008 -0700
@@ -0,0 +1,17 @@
+// Copyright IBM Corp. 2007
+
+[ Provider("cmpi::Virt_Device") ]
+class Xen_PointingDevice : CIM_PointingDevice
+{
+};
+
+[ Provider("cmpi::Virt_Device") ]
+class KVM_PointingDevice : CIM_PointingDevice
+{
+};
+
+[ Provider("cmpi::Virt_Device") ]
+class LXC_PointingDevice : CIM_PointingDevice
+{
+};
+
diff -r c403069bb8b9 -r d474e34c81bc schema/PointingDevice.registration
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/PointingDevice.registration Wed Oct 22 09:24:16 2008 -0700
@@ -0,0 +1,5 @@
+# Copyright IBM Corp. 2008
+# Classname Namespace ProviderName ProviderModule ProviderTypes
+Xen_PointingDevice root/virt Virt_Device Virt_Device instance
+KVM_PointingDevice root/virt Virt_Device Virt_Device instance
+LXC_PointingDevice root/virt Virt_Device Virt_Device instance
diff -r c403069bb8b9 -r d474e34c81bc src/svpc_types.h
--- a/src/svpc_types.h Wed Nov 05 15:13:38 2008 -0800
+++ b/src/svpc_types.h Wed Oct 22 09:24:16 2008 -0700
@@ -29,15 +29,17 @@
#define CIM_RES_TYPE_DISK 17
#define CIM_RES_TYPE_EMU 1
#define CIM_RES_TYPE_GRAPHICS 24
+#define CIM_RES_TYPE_INPUT 13
#define CIM_RES_TYPE_UNKNOWN 1000
-#define CIM_RES_TYPE_COUNT 5
+#define CIM_RES_TYPE_COUNT 6
const static int cim_res_types[CIM_RES_TYPE_COUNT] =
{CIM_RES_TYPE_NET,
CIM_RES_TYPE_DISK,
CIM_RES_TYPE_MEM,
CIM_RES_TYPE_PROC,
CIM_RES_TYPE_GRAPHICS,
+ CIM_RES_TYPE_INPUT,
};
#define CIM_VSSD_RECOVERY_NONE 2