linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yu A Wang <arron.wang@intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: Yu A Wang <arron.wang@intel.com>
Subject: [PATCH 1/2] adapter: Export set powered operation
Date: Mon, 16 Jan 2012 04:02:42 -0500	[thread overview]
Message-ID: <1326704562-22825-1-git-send-email-arron.wang@intel.com> (raw)

---
 src/adapter.c |    5 +++++
 src/adapter.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/adapter.c b/src/adapter.c
index 7e4bbb6..e124010 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3363,6 +3363,11 @@ int adapter_ops_setup(void)
 	return ret;
 }
 
+int adapter_ops_set_powered(int index, gboolean powered)
+{
+	return adapter_ops->set_powered(index, powered);
+}
+
 void btd_adapter_register_powered_callback(struct btd_adapter *adapter,
 						btd_adapter_powered_cb cb)
 {
diff --git a/src/adapter.h b/src/adapter.h
index fb1dcdf..9dfd927 100644
--- a/src/adapter.h
+++ b/src/adapter.h
@@ -214,6 +214,7 @@ struct btd_adapter_ops {
 int btd_register_adapter_ops(struct btd_adapter_ops *ops, gboolean priority);
 void btd_adapter_cleanup_ops(struct btd_adapter_ops *btd_adapter_ops);
 int adapter_ops_setup(void);
+int adapter_ops_set_powered(int index, gboolean powered);
 
 typedef void (*btd_adapter_powered_cb) (struct btd_adapter *adapter,
 						gboolean powered);
-- 
1.7.2.2


                 reply	other threads:[~2012-01-16  9:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1326704562-22825-1-git-send-email-arron.wang@intel.com \
    --to=arron.wang@intel.com \
    --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;
as well as URLs for NNTP newsgroup(s).