[Libvirt-cim] [PATCH 1 of 2] Add PointingDevice schema and input device type

yunguol at cn.ibm.com yunguol at cn.ibm.com
Wed Oct 29 22:24:20 UTC 2008


# HG changeset patch
# User Kaitlin Rupert <karupert at us.ibm.com>
# Date 1224692656 25200
# Node ID e13fa0c9fc7a654302632e1663a6325599d28710
# Parent  43db70ed19ae5323b7521f21c582b0e7ccf2403c
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 at us.ibm.com>

diff -r 43db70ed19ae -r e13fa0c9fc7a 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 43db70ed19ae -r e13fa0c9fc7a 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 43db70ed19ae -r e13fa0c9fc7a 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 43db70ed19ae -r e13fa0c9fc7a 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




More information about the Libvirt-cim mailing list