Linux bluetooth development
 help / color / mirror / Atom feed
From: Emeltchenko Andrei <Andrei.Emeltchenko.news@gmail.com>
To: Anderson Lizardo <anderson.lizardo@openbossa.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFCv0] Bluetooth: General HCI callback implementation
Date: Mon, 12 Dec 2011 11:15:47 +0200	[thread overview]
Message-ID: <20111212091544.GA6131@aemeltch-MOBL1> (raw)
In-Reply-To: <CAJdJm_NwrcB8VmK7BZjAmBYL6Md=Ksq9ONcisu0UApwPTbz-qQ@mail.gmail.com>

Hi Anderson,

On Sat, Dec 10, 2011 at 08:47:38AM -0400, Anderson Lizardo wrote:
> Hi Andrei,
> 
> On Fri, Dec 9, 2011 at 9:10 AM, Emeltchenko Andrei
> <Andrei.Emeltchenko.news@gmail.com> wrote:
> > From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> >
> > Add general HCI callback implementation. Can be used for executing
> > HCI commands from A2MP protocol.
> > ---
> >  include/net/bluetooth/hci_core.h |   14 +++++++++++
> >  net/bluetooth/hci_core.c         |   47 ++++++++++++++++++++++++++++++++++++++
> >  net/bluetooth/hci_event.c        |    4 +++
> >  3 files changed, 65 insertions(+), 0 deletions(-)
> >
> > diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
> > index cc5481d..e473cd2 100644
> > --- a/include/net/bluetooth/hci_core.h
> > +++ b/include/net/bluetooth/hci_core.h
> > @@ -121,6 +121,15 @@ struct adv_entry {
> >        u8 bdaddr_type;
> >  };
> >
> > +struct hci_dev;
> > +
> > +struct cb_cmd {
> > +       struct list_head list;
> > +       u16 opcode;
> > +       void *opt;
> > +       void (*cb)(struct hci_dev *hdev, void *opt);
> > +};
> > +
> 
> Isn't this a too generic name for an exported struct, which may cause clashes?

At least my cscope cannot find other struct with the same name in Linux
kernel.

But I agree that name might be better. Maybe "hci_req_cb" ?

Best regards 
Andrei Emeltchenko 


  reply	other threads:[~2011-12-12  9:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09 13:10 [RFCv0] Bluetooth: General HCI callback implementation Emeltchenko Andrei
2011-12-10 12:47 ` Anderson Lizardo
2011-12-12  9:15   ` Emeltchenko Andrei [this message]
2011-12-14 22:20 ` Marcel Holtmann
2011-12-15  9:19   ` Emeltchenko Andrei
2011-12-15  9: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=20111212091544.GA6131@aemeltch-MOBL1 \
    --to=andrei.emeltchenko.news@gmail.com \
    --cc=anderson.lizardo@openbossa.org \
    --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