# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1224692656 25200
# Node ID c7a932c5026084087d988925cde244e5f9ede862
# Parent c4e40b8d7aa0ad1135e9ea4273e3becff2fd3cbb
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 c4e40b8d7aa0 -r c7a932c50260 Makefile.am
--- a/Makefile.am Mon Oct 20 18:24:30 2008 -0700
+++ 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 c4e40b8d7aa0 -r c7a932c50260 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 c4e40b8d7aa0 -r c7a932c50260 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 c4e40b8d7aa0 -r c7a932c50260 src/svpc_types.h
--- a/src/svpc_types.h Mon Oct 20 18:24:30 2008 -0700
+++ 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