public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Lucas De Marchi <lucas.demarchi@profusion.mobi>
To: linux-bluetooth@vger.kernel.org
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Subject: [PATCH BlueZ 3/3] maemo6: mce: Fix listening for signals
Date: Mon, 25 Jun 2012 12:44:42 -0300	[thread overview]
Message-ID: <1340639082-10347-3-git-send-email-lucas.demarchi@profusion.mobi> (raw)
In-Reply-To: <1340639082-10347-1-git-send-email-lucas.demarchi@profusion.mobi>

We should listen for signals only on MCE bus name.
---
 plugins/maemo6.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/plugins/maemo6.c b/plugins/maemo6.c
index 4819af4..a8c9bed 100644
--- a/plugins/maemo6.c
+++ b/plugins/maemo6.c
@@ -224,12 +224,13 @@ static int mce_probe(struct btd_adapter *adapter)
 
 	DBG("path %s", adapter_get_path(adapter));
 
-	watch_id = g_dbus_add_signal_watch(conn, NULL, MCE_SIGNAL_PATH,
+	watch_id = g_dbus_add_signal_watch(conn, MCE_SERVICE, MCE_SIGNAL_PATH,
 					MCE_SIGNAL_IF, MCE_RADIO_STATES_SIG,
 					mce_signal_callback, adapter, NULL);
 
-	tklock_watch_id = g_dbus_add_signal_watch(conn, NULL, MCE_SIGNAL_PATH,
-					MCE_SIGNAL_IF, MCE_TKLOCK_MODE_SIG,
+	tklock_watch_id = g_dbus_add_signal_watch(conn, MCE_SERVICE,
+					MCE_SIGNAL_PATH, MCE_SIGNAL_IF,
+					MCE_TKLOCK_MODE_SIG,
 					mce_tklock_mode_cb, adapter, NULL);
 
 	btd_adapter_register_powered_callback(adapter, adapter_powered);
-- 
1.7.11


  parent reply	other threads:[~2012-06-25 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-23 14:02 [PATCH BlueZ] gdbus: Fix removal of filter after last filter_data Lucas De Marchi
2012-06-25  8:51 ` Luiz Augusto von Dentz
2012-06-25 13:26   ` Lucas De Marchi
2012-06-25 15:14     ` Luiz Augusto von Dentz
2012-06-25 15:44       ` [PATCH BlueZ 1/3] " Lucas De Marchi
2012-06-25 15:44         ` [PATCH BlueZ 2/3] telephony-ofono: Fix listening for signals Lucas De Marchi
2012-06-25 15:44         ` Lucas De Marchi [this message]
2012-06-25 15:55           ` [PATCH BlueZ 3/3] maemo6: mce: " Luiz Augusto von Dentz
2012-06-25 15:56             ` Lucas De Marchi
2012-06-26  7:45         ` [PATCH BlueZ 1/3] gdbus: Fix removal of filter after last filter_data Luiz Augusto von Dentz
2012-06-28  7:39         ` Johan Hedberg

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=1340639082-10347-3-git-send-email-lucas.demarchi@profusion.mobi \
    --to=lucas.demarchi@profusion.mobi \
    --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