public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Bastien Nocera <hadess@hadess.net>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH 1/3] input: Add helper function to request disconnect
Date: Fri, 07 Sep 2012 12:01:02 +0100	[thread overview]
Message-ID: <1347015662.2219.3.camel@sirocco.hadess.net> (raw)


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

diff --git a/profiles/input/device.c b/profiles/input/device.c
index f1e1af0..04726f8 100644
--- a/profiles/input/device.c
+++ b/profiles/input/device.c
@@ -1308,3 +1308,10 @@ 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



             reply	other threads:[~2012-09-07 11:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07 11:01 Bastien Nocera [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-06-16 23:32 [PATCH 1/3] input: Add helper function to request disconnect Bastien Nocera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1347015662.2219.3.camel@sirocco.hadess.net \
    --to=hadess@hadess.net \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox