summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <whot@potoroo.wearablelab.ml.unisa.edu.au>2008-04-05 20:37:09 +1030
committerPeter Hutterer <whot@potoroo.wearablelab.ml.unisa.edu.au>2008-04-05 20:37:21 +1030
commit8f38feb3e464986dc523dabd3447ba13263a3a4a (patch)
tree3cf4ee7de72b4cf81a5c6aeaeac9fac19ea6f8c3 /Xi
parentd0395a753079f291a78d9ab86810b5f84f237491 (diff)
Xi: add comments for DeepCopyDeviceClasses, ChangeMasterDeviceClasses.
Diffstat (limited to 'Xi')
-rw-r--r--Xi/exevents.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Xi/exevents.c b/Xi/exevents.c
index 5e72bae1c..252256a70 100644
--- a/Xi/exevents.c
+++ b/Xi/exevents.c
@@ -357,6 +357,11 @@ DeepCopyFeedbackClasses(DeviceIntPtr from, DeviceIntPtr to)
}
}
+/**
+ * Copies the CONTENT of the classes of device from into the classes in device
+ * to. From and to are identical after finishing.
+ */
+
_X_EXPORT void
DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
{
@@ -430,6 +435,12 @@ DeepCopyDeviceClasses(DeviceIntPtr from, DeviceIntPtr to)
DeepCopyFeedbackClasses(from, to);
}
+/**
+ * Change MD to look like SD by copying all classes over. An event is sent to
+ * all interested clients.
+ * @param device The slave device
+ * @param dcce Pointer to the event struct.
+ */
static void
ChangeMasterDeviceClasses(DeviceIntPtr device,
deviceClassesChangedEvent *dcce)