linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] [PATCH] Make RemoteName D-BUS method non-blocking
Date: Thu, 20 Oct 2005 00:58:56 +0200	[thread overview]
Message-ID: <1129762736.2241.18.camel@blade> (raw)
In-Reply-To: <20051019140715.GA15123@localhost.localdomain>

Hi Johan,

> Here's a patch which does a similar change RemoteName as my previous
> patch did to Inquiry. For the user to be able to know if the name
> request fails because of e.g. page timeout I have added a status
> paramer to the signal and forced the signal to be always sent (not just
> when evt->status == 0).

I like to have this patch in, but it didn't apply cleanly. This might be
my fault, because I did some coding style cleanups while I was without
Internet and committed them today.

Even if I repeat myself, but I take this whitespace thing serious and
you should tell your editor to visualize tabs and spaces for you. This
will make developing a lot easier.

> There is one problem when using hci_send_req with the inquiry and remote
> name HCI commands: they don't generate a command complete event, only a
> command status event. This means that hci_send_req will fail with
> ETIMEDOUT (I didn't notice it earlier since the UI status is immediately
> updated by the InquiryStarted signal). Using hci_send_cmd is also not
> (IMHO) an option since a failure status in the command status event
> should be detected and handled properly.

Why don't you set rq.event to EVT_CMD_STATUS?

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  parent reply	other threads:[~2005-10-19 22:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-19 14:07 [Bluez-devel] [PATCH] Make RemoteName D-BUS method non-blocking Johan Hedberg
2005-10-19 15:03 ` P. Durante
2005-10-19 17:45   ` Johan Hedberg
2005-10-19 22:58 ` Marcel Holtmann [this message]
2005-10-20  7:05   ` Johan Hedberg
2005-10-20  7:52     ` Marcel Holtmann
2005-10-20  8:37       ` Johan Hedberg
2005-10-20  9:02         ` Marcel Holtmann
2005-10-20  9:50           ` Johan Hedberg
2005-10-20 10:16             ` Marcel Holtmann
2005-10-20 11:21               ` Johan Hedberg
2005-10-20 13:37                 ` Johan Hedberg
2005-10-22 12:58                 ` 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=1129762736.2241.18.camel@blade \
    --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).