diff options
author | Hemant Gupta <hemant.gupta@stericsson.com> | 2012-01-16 13:36:42 +0530 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-01-18 14:20:27 +0200 |
commit | a9b7f9281b0c11b250e2738bda942a2be941003f (patch) | |
tree | 8d533894f273bc5d3a87588771f995fadbec3333 /src/adapter.c | |
parent | 5d0881295e37e81055cfdc593afd852d1a21d2c2 (diff) | |
download | bluez-a9b7f9281b0c11b250e2738bda942a2be941003f.tar.gz bluez-a9b7f9281b0c11b250e2738bda942a2be941003f.tar.xz bluez-a9b7f9281b0c11b250e2738bda942a2be941003f.zip |
Add KeyboardDisplay IO Capability
This patch adds suppport for KeyboardDisplay IO capability in BlueZ.
It is ensured that the new capability is set only if management
interface is being used. For hciops Keyboarddisplay capability is
mapped to DisplayYesNo.
Diffstat (limited to 'src/adapter.c')
-rw-r--r-- | src/adapter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c index 7a41df9a..a75a0c4f 100644 --- a/src/adapter.c +++ b/src/adapter.c @@ -74,6 +74,7 @@ #define IO_CAPABILITY_DISPLAYYESNO 0x01 #define IO_CAPABILITY_KEYBOARDONLY 0x02 #define IO_CAPABILITY_NOINPUTNOOUTPUT 0x03 +#define IO_CAPABILITY_KEYBOARDDISPLAY 0x04 #define IO_CAPABILITY_INVALID 0xFF #define check_address(address) bachk(address) @@ -1533,6 +1534,8 @@ static uint8_t parse_io_capability(const char *capability) return IO_CAPABILITY_KEYBOARDONLY; if (g_str_equal(capability, "NoInputNoOutput")) return IO_CAPABILITY_NOINPUTNOOUTPUT; + if (g_str_equal(capability, "KeyboardDisplay")) + return IO_CAPABILITY_KEYBOARDDISPLAY; return IO_CAPABILITY_INVALID; } |