linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] input: Add helper function to request disconnect
@ 2012-09-07 12:01 Bastien Nocera
  2012-09-07 12:24 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Bastien Nocera @ 2012-09-07 12:01 UTC (permalink / raw)
  To: linux-bluetooth


---
 profiles/input/device.c | 8 ++++++++
 profiles/input/device.h | 1 +
 2 files changed, 9 insertions(+)

diff --git a/profiles/input/device.c b/profiles/input/device.c
index f1e1af0..c42f137 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -1308,3 +1308,11 @@ int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst)
 
 	return 0;
 }
+
+void input_device_request_disconnect(struct fake_input *fake)
+{
+	if (fake == NULL || fake->idev == NULL)
+		return;
+
+	device_request_disconnect(fake->idev->device, NULL);
+}
diff --git a/profiles/input/device.h b/profiles/input/device.h
index 509a353..ff52967 100644
--- a/profiles/input/device.h
+++ b/profiles/input/device.h
@@ -49,3 +49,4 @@ int input_device_unregister(const char *path, const char *uuid);
 int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm,
 							GIOChannel *io);
 int input_device_close_channels(const bdaddr_t *src, const bdaddr_t *dst);
+void input_device_request_disconnect(struct fake_input *fake);
-- 
1.7.12



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] input: Add helper function to request disconnect
  2012-09-07 12:01 [PATCH 1/2] input: Add helper function to request disconnect Bastien Nocera
@ 2012-09-07 12:24 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2012-09-07 12:24 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: linux-bluetooth

Hi Bastien,

On Fri, Sep 07, 2012, Bastien Nocera wrote:
> 
> ---
>  profiles/input/device.c | 8 ++++++++
>  profiles/input/device.h | 1 +
>  2 files changed, 9 insertions(+)

Both patches have been applied. Thanks.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-07 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07 12:01 [PATCH 1/2] input: Add helper function to request disconnect Bastien Nocera
2012-09-07 12:24 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).