OSDN Git Service

input: Implement the new ReconnectMode Input1 property.
authorAlex Deymo <deymo@chromium.org>
Tue, 16 Apr 2013 21:58:38 +0000 (14:58 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 23 Apr 2013 07:37:26 +0000 (10:37 +0300)
commitfb97136ae104ffa8219991bb478d03207723e60a
tree592da507f6f517e2c66746414b829d22d1f2d5ca
parentbe37902b7dca39b23edf109dd95da75848e7fc6f
input: Implement the new ReconnectMode Input1 property.

The "Connectability" of a HID device, as defined by the HID spec,
governs the way the host may and should connect to a HID device or
expect a connection from it. In the comon case of mice and keyboards
the HIDNormallyConnectable is FALSE and HIDReconnectInitiate is TRUE,
since those devices only attempt a connection to the host when they
have some data to transfer. A connection attempt initiated from the
host after the device drops the connection (while still paired) will
result in a Page timeout.

This patch exposes a new property called "ReconnectMode" combining the
those two SDP attributes as shown in the Connectability section of the
HID spec (see section 5.4.2). The property can have one of the following
four values: "None", "Device", "Host", "Any", and is derived from the
SDP cached value on device creation even if the device is off.
profiles/input/device.c