summaryrefslogtreecommitdiff
path: root/src/agent.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2018-07-27 11:14:04 +0300
committerhimanshu <h.himanshu@samsung.com>2020-01-14 14:23:35 +0530
commit24735cbbbfd408cec4e31b95060af886253fcc19 (patch)
tree582327c6a254154a712e75fe9c724f79740c03c2 /src/agent.h
parent2d6b8fe603ffdd0b884a27ea90ebc4c90cd5d5ff (diff)
downloadbluez-24735cbbbfd408cec4e31b95060af886253fcc19.tar.gz
bluez-24735cbbbfd408cec4e31b95060af886253fcc19.tar.bz2
bluez-24735cbbbfd408cec4e31b95060af886253fcc19.zip
core: Add AlwaysPairable to main.conf
This adds a new option called AlwaysPairable to main.conf, it can be used to enable Adapter.Pairable even in case there is no Agent available. Since that could be consider a security problem to allow pairing without user's consent the option defaults to false. Change-Id: I67e534d5e8a6490ed2c99950c629d6e1ab493e30 Signed-off-by: himanshu <h.himanshu@samsung.com>
Diffstat (limited to 'src/agent.h')
-rwxr-xr-xsrc/agent.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/agent.h b/src/agent.h
index 1e469203..f14d1432 100755
--- a/src/agent.h
+++ b/src/agent.h
@@ -22,6 +22,13 @@
*
*/
+#define IO_CAPABILITY_DISPLAYONLY 0x00
+#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
+
struct agent;
typedef void (*agent_cb) (struct agent *agent, DBusError *err,