diff options
author | Mikel Astiz <mikel.astiz@bmw-carit.de> | 2012-08-17 11:10:55 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-08-17 12:26:30 +0300 |
commit | 902e9f2de2ac6d0a96fdeca9858e15738b1ff5d7 (patch) | |
tree | b6b5bf42f0b1c5c6941993598007ffb8f1b9757c /lib | |
parent | ee3b0b2b3326e883790685e51ebb0c9a9f8332c9 (diff) | |
download | bluez-902e9f2de2ac6d0a96fdeca9858e15738b1ff5d7.tar.gz |
mgmt: Add reason to device disconnect event
Extend the management API with the disconnect reason, as now reported
by the Kernel in MGMT_EV_DEVICE_DISCONNECTED.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mgmt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h index 83dcd8492..a2648bcfe 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -373,9 +373,15 @@ struct mgmt_ev_device_connected { uint8_t eir[0]; } __packed; +#define MGMT_DEV_DISCONN_UNKNOWN 0x00 +#define MGMT_DEV_DISCONN_TIMEOUT 0x01 +#define MGMT_DEV_DISCONN_LOCAL_HOST 0x02 +#define MGMT_DEV_DISCONN_REMOTE 0x03 + #define MGMT_EV_DEVICE_DISCONNECTED 0x000C struct mgmt_ev_device_disconnected { struct mgmt_addr_info addr; + uint8_t reason; } __packed; #define MGMT_EV_CONNECT_FAILED 0x000D |