# HG changeset patch
# User Kaitlin Rupert <karupert(a)us.ibm.com>
# Date 1224692656 25200
# Node ID e53b108e82fc54142208dd48a6edd07c2eae0a68
# Parent 739113a661c7a342e67bd7f19ce8c744e283bbff
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 739113a661c7 -r e53b108e82fc 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 739113a661c7 -r e53b108e82fc 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 739113a661c7 -r e53b108e82fc 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 739113a661c7 -r e53b108e82fc 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