From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Cleaning up the D-Bus interface
Date: Thu, 02 Feb 2006 18:52:41 +0100 [thread overview]
Message-ID: <1138902761.3750.7.camel@localhost.localdomain> (raw)
In-Reply-To: <e1effdeb0601300944i45664a73v999c155298825117@mail.gmail.com>
Hi Claudio,
> Here is the patch following your suggestion.
cool, but the patch has some issues.
Don't refer to the Bluetooth specification for the mode values, because
we define our own.
Please name the modes like following:
#define MODE_OFF 0x00
#define MODE_CONNECTABLE 0x01
#define MODE_DISCOVERABLE 0x02
The discoverable mode of course includes connectable mode.
In the handle_device_get_mode_req(), the switch statement always sets
the mode to 0xff. Please add the breaks and if you write a fall through
statement, then comment it.
> Now, we introduced a problem. How handle scenarios where other
> application/or hciconfig changes the scan mode, enabling the Inquiry
> Scan only? :) In the current patch, I am ignoring the HCI command
> complete event for this case.
We need to track the scan mode command complete event and if the mode
changes, we need to send out a mode change signal.
> When we close this discussion I can start play with the discoverable time stuff.
That would be really great, because this feature could come in handy for
any graphical application.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-02-02 17:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-20 20:48 [Bluez-devel] Cleaning up the D-Bus interface Marcel Holtmann
2005-12-21 20:16 ` Eduardo Rocha
2005-12-21 20:21 ` Marcel Holtmann
2005-12-22 13:11 ` Eduardo Rocha
2005-12-22 17:16 ` Marcel Holtmann
2005-12-23 13:28 ` Eduardo Rocha
2005-12-23 15:10 ` Marcel Holtmann
2005-12-24 14:24 ` Marcel Holtmann
2006-01-25 18:54 ` Claudio Takahasi
2006-01-26 19:45 ` Marcel Holtmann
2006-01-30 17:44 ` Claudio Takahasi
2006-02-02 17:52 ` Marcel Holtmann [this message]
2006-02-02 21:11 ` Claudio Takahasi
2006-02-07 10:40 ` Marcel Holtmann
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=1138902761.3750.7.camel@localhost.localdomain \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/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).