From 8f38feb3e464986dc523dabd3447ba13263a3a4a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Sat, 5 Apr 2008 20:37:09 +1030 Subject: [PATCH] Xi: add comments for DeepCopyDeviceClasses, ChangeMasterDeviceClasses. --- Xi/exevents.c | 11 +++++++++++ 1 file changed, 11 insertions(+) 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)