diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-09-12 16:22:56 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-09-12 16:31:41 +0300 |
commit | 89c2f79b2e5766d6a2b42fd475390c159534e2bb (patch) | |
tree | 64112fb872d9002d6938ae4d555a07bea26b8c15 /profiles/deviceinfo | |
parent | fff323480d545861b4bc48ce24daa9df86442e27 (diff) | |
download | bluez-89c2f79b2e5766d6a2b42fd475390c159534e2bb.tar.gz |
deviceinfo: Implement disconnect callback
This implements the profile disconnect so the service state is updated
properly.
Diffstat (limited to 'profiles/deviceinfo')
-rw-r--r-- | profiles/deviceinfo/deviceinfo.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/profiles/deviceinfo/deviceinfo.c b/profiles/deviceinfo/deviceinfo.c index 34d9e204a..0ce7edb59 100644 --- a/profiles/deviceinfo/deviceinfo.c +++ b/profiles/deviceinfo/deviceinfo.c @@ -141,6 +141,13 @@ static int deviceinfo_driver_accept(struct btd_service *service) return 0; } +static int deviceinfo_disconnect(struct btd_service *service) +{ + btd_service_disconnecting_complete(service, 0); + + return 0; +} + static struct btd_profile deviceinfo_profile = { .name = "deviceinfo", .remote_uuid = DEVICE_INFORMATION_UUID, @@ -148,6 +155,7 @@ static struct btd_profile deviceinfo_profile = { .device_probe = deviceinfo_driver_probe, .device_remove = deviceinfo_driver_remove, .accept = deviceinfo_driver_accept, + .disconnect = deviceinfo_disconnect, }; static int deviceinfo_init(void) |