diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-01-21 07:03:02 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-01-21 07:03:02 +0200 |
commit | 48908574c4853023dfe402a120b58a7a7d1f56de (patch) | |
tree | 7c4dc0e6058cb8b600350309de035db3840df15e /lib | |
parent | bda6bb0079268b7db27695f40168aba07e960d8b (diff) | |
download | bluez-48908574c4853023dfe402a120b58a7a7d1f56de.tar.gz |
mgmt: Add support for connected/disconnected events
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mgmt.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/mgmt.h b/lib/mgmt.h index bd4bd96b0..5176ff33f 100644 --- a/lib/mgmt.h +++ b/lib/mgmt.h @@ -171,3 +171,15 @@ struct mgmt_ev_new_key { struct mgmt_key_info key; uint8_t old_key_type; } __packed; + +#define MGMT_EV_DEVICE_CONNECTED 0x000B +struct mgmt_ev_device_connected { + uint16_t index; + bdaddr_t bdaddr; +} __packed; + +#define MGMT_EV_DEVICE_DISCONNECTED 0x000C +struct mgmt_ev_device_disconnected { + uint16_t index; + bdaddr_t bdaddr; +} __packed; |