summaryrefslogtreecommitdiff
path: root/include/input.h
diff options
context:
space:
mode:
authorBenjamin Close <benjamin.close@clearchain.com>2009-04-16 15:33:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-04-21 13:11:51 +1000
commit826a5bff0136b2b4d55a9e6e6bc3a7a64da9031e (patch)
treeb8add91f05025d005404fb800bffac255a6cc3b4 /include/input.h
parente2e5932bda3f473629d4be6f3ca4dcab18993eb6 (diff)
dix: Change AllocMaster into AllocDevicePair, allow creation of SDs too.
Allocating a slave device is essentially the same as allocating a master device. Hence we rename AllocMaster to AllocDevicePair and provided the ability to indicate if a master or slave device pair is required. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include/input.h')
-rw-r--r--include/input.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/input.h b/include/input.h
index 76519198e..b3bb5d1a5 100644
--- a/include/input.h
+++ b/include/input.h
@@ -468,10 +468,11 @@ extern _X_EXPORT int AttachDevice(ClientPtr client,
extern _X_EXPORT DeviceIntPtr GetPairedDevice(DeviceIntPtr kbd);
-extern _X_EXPORT int AllocMasterDevice(ClientPtr client,
+extern _X_EXPORT int AllocDevicePair(ClientPtr client,
char* name,
DeviceIntPtr* ptr,
- DeviceIntPtr* keybd);
+ DeviceIntPtr* keybd,
+ Bool master);
extern _X_EXPORT void DeepCopyDeviceClasses(DeviceIntPtr from,
DeviceIntPtr to);