summaryrefslogtreecommitdiffstats
path: root/src/hardware/dmidecode.h
diff options
context:
space:
mode:
authorPeter Schiffer <pschiffe@redhat.com>2013-06-20 18:13:20 +0200
committerPeter Schiffer <pschiffe@redhat.com>2013-06-20 18:13:20 +0200
commit7aa75594f3beb92248e21bd19c9f8a75746707e1 (patch)
treeb8f1e05b707d7672fc952321a2a5c2ec2dfd5fd3 /src/hardware/dmidecode.h
parent7057f8c9ed6f51044a853710defde4ef14f2a340 (diff)
downloadopenlmi-providers-7aa75594f3beb92248e21bd19c9f8a75746707e1.tar.gz
openlmi-providers-7aa75594f3beb92248e21bd19c9f8a75746707e1.tar.xz
openlmi-providers-7aa75594f3beb92248e21bd19c9f8a75746707e1.zip
Hardware: Added pointing device provider
New provider: * LMI_PointingDeviceProvider It currently represents pointing devices on chassis, such as touch pad or track point.
Diffstat (limited to 'src/hardware/dmidecode.h')
-rw-r--r--src/hardware/dmidecode.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/hardware/dmidecode.h b/src/hardware/dmidecode.h
index 76627af..34bfd47 100644
--- a/src/hardware/dmidecode.h
+++ b/src/hardware/dmidecode.h
@@ -135,6 +135,12 @@ typedef struct _DmiSystemSlot {
short supports_hotplug; /* Supports slot hotplug? */
} DmiSystemSlot;
+/* Pointing Device from dmidecode. */
+typedef struct _DmiPointingDevice {
+ char *type; /* Type */
+ unsigned buttons; /* Number of buttons */
+} DmiPointingDevice;
+
/*
* Get array of processors according to the dmidecode program.
* @param cpu array of cpus, this function will allocate necessary memory,
@@ -241,5 +247,21 @@ short dmi_get_system_slots(DmiSystemSlot **slots, unsigned *slots_nb);
*/
void dmi_free_system_slots(DmiSystemSlot **slots, unsigned *slots_nb);
+/*
+ * Get array of pointing devices according to the dmidecode program.
+ * @param devices array of devices, this function will allocate necessary memory,
+ * but caller is responsible for freeing it
+ * @param devices_nb number of devices
+ * @return 0 if success, negative value otherwise
+ */
+short dmi_get_pointing_devices(DmiPointingDevice **devices, unsigned *devices_nb);
+
+/*
+ * Free array of pointing device structures.
+ * @param devices array of pointing devices
+ * @param devices_nb number of pointing devices
+ */
+void dmi_free_pointing_devices(DmiPointingDevice **devices, unsigned *devices_nb);
+
#endif /* DMIDECODE_H_ */