From: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Subject: [PATCH_v3 2/4] android/hal-health: Add HDP .unregister_application method
Date: Fri, 14 Mar 2014 15:30:56 +0200 [thread overview]
Message-ID: <1394803858-10052-3-git-send-email-ravikumar.veeramally@linux.intel.com> (raw)
In-Reply-To: <1394803858-10052-1-git-send-email-ravikumar.veeramally@linux.intel.com>
---
android/hal-health.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/android/hal-health.c b/android/hal-health.c
index 6e0f731..6467b20 100644
--- a/android/hal-health.c
+++ b/android/hal-health.c
@@ -145,6 +145,21 @@ static bt_status_t register_application(bthl_reg_param_t *reg, int *app_id)
return status;
}
+static bt_status_t unregister_application(int app_id)
+{
+ struct hal_cmd_health_unreg_app cmd;
+
+ DBG("");
+
+ if (!interface_ready())
+ return BT_STATUS_NOT_READY;
+
+ cmd.app_id = app_id;
+
+ return hal_ipc_cmd(HAL_SERVICE_ID_HEALTH, HAL_OP_HEALTH_UNREG_APP,
+ sizeof(cmd), &cmd, 0, NULL, NULL);
+}
+
static bt_status_t init(bthl_callbacks_t *callbacks)
{
struct hal_cmd_register_module cmd;
@@ -197,7 +212,7 @@ static bthl_interface_t health_if = {
.size = sizeof(health_if),
.init = init,
.register_application = register_application,
- .unregister_application = NULL,
+ .unregister_application = unregister_application,
.connect_channel = NULL,
.destroy_channel = NULL,
.cleanup = cleanup
--
1.8.3.2
next prev parent reply other threads:[~2014-03-14 13:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-14 13:30 [PATCH_v3 0/4] Add HDP profile support at HAL side Ravi kumar Veeramally
2014-03-14 13:30 ` [PATCH_v3 1/4] android/hal-health: Add HDP .register_application method Ravi kumar Veeramally
2014-03-17 13:50 ` Szymon Janc
2014-03-14 13:30 ` Ravi kumar Veeramally [this message]
2014-03-14 13:30 ` [PATCH_v3 3/4] android/hal-health: Add HDP .connect_channel method Ravi kumar Veeramally
2014-03-14 13:30 ` [PATCH_v3 4/4] android/hal-health: Add HDP .destroy_channel method Ravi kumar Veeramally
2014-03-17 13:54 ` [PATCH_v3 0/4] Add HDP profile support at HAL side Szymon Janc
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=1394803858-10052-3-git-send-email-ravikumar.veeramally@linux.intel.com \
--to=ravikumar.veeramally@linux.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