diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-07-27 11:14:04 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-07-30 09:47:34 +0300 |
commit | 1880b299086659844889cdaf687133aca5eaf102 (patch) | |
tree | a184d363ed4943aacdc1388c4334a2d4df5f0cdd /src/agent.h | |
parent | 45969a7a7335eaa47c52b76b9e32c28d680dc031 (diff) | |
download | bluez-1880b299086659844889cdaf687133aca5eaf102.tar.gz |
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.
Diffstat (limited to 'src/agent.h')
-rw-r--r-- | src/agent.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/agent.h b/src/agent.h index 1e4692036..f14d14325 100644 --- 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, |