linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] [DBUS PATCH] BondingCreated && BondingFailed
@ 2006-02-17 18:07 Claudio Takahasi
  2006-02-17 18:46 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Claudio Takahasi @ 2006-02-17 18:07 UTC (permalink / raw)
  To: bluez-devel

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

Hi Marcel,

Here is another small patch...

According with the BlueZ D-Bus API the bonding result must be sent
using the BondingCreated and BondingFailed signals.

In the current code, the bonding result the status is added in the
signal argument.

The next step is start the development of the missing bonding
services: RemoveBonding, HasBonding and ListBonding.


Regards,
Claudio.
--
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT

[-- Attachment #2: bonding01.patch --]
[-- Type: text/x-patch, Size: 789 bytes --]

--- bluez-utils-cvs.orig/hcid/dbus.c	2006-02-17 11:31:06.000000000 -0200
+++ bluez-utils-cvs-bonding/hcid/dbus.c	2006-02-17 12:57:18.000000000 -0200
@@ -457,16 +457,14 @@
 	snprintf(path, sizeof(path), "%s/hci%d", DEVICE_PATH, id);
 
 	message = dbus_message_new_signal(path, DEVICE_INTERFACE,
-						DEV_SIG_BONDING_CREATED);
+						(!status?DEV_SIG_BONDING_CREATED:DEV_SIG_BONDING_FAILED));
 	if (message == NULL) {
 		syslog(LOG_ERR, "Can't allocate D-BUS remote name message");
 		goto failed;
 	}
 
-	/*FIXME: create the signal based on status value - BondingCreated or BondingFailed*/
 	dbus_message_append_args(message,
 					DBUS_TYPE_STRING, &peer_addr,
-					DBUS_TYPE_BYTE, &status,
 					DBUS_TYPE_INVALID);
 
 	if (dbus_connection_send(connection, message, NULL) == FALSE) {


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

end of thread, other threads:[~2006-02-20 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-17 18:07 [Bluez-devel] [DBUS PATCH] BondingCreated && BondingFailed Claudio Takahasi
2006-02-17 18:46 ` Marcel Holtmann
2006-02-20 13:58   ` Claudio Takahasi
2006-02-20 14:10     ` Marcel Holtmann

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).