All of lore.kernel.org
 help / color / mirror / Atom feed
From: Natalya Rozhnova <rozhnova.natalya@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: Understanding Bluez mgmt events
Date: Tue, 16 May 2017 10:49:27 +0200	[thread overview]
Message-ID: <CAMybWM3jHv75hrixjk3Ep8Er7Qkw8T5peKTN6SNE3qJLg9n2eg@mail.gmail.com> (raw)

Hello,

I'm trying to understand the mgmt events in Bluez.
If I understand correctly, the MGMT_OP_... commands are first sent as following:

mgmt_send(adapter->mgmt, MGMT_OP_START_DISCOVERY, ...)

And then it should trigger a corresponding event like
MGMT_EV_DISCOVERING, MGMT_EV_DEVICE_FOUND etc.

I'm quite lost in understanding who, where and how generates these
MGMT_EV... events...
Could anybody please explain this on a simple example or showing a
piece of code in bluez sources where it is done...

Thanks in advance for any help,
Natalya

             reply	other threads:[~2017-05-16  8:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-16  8:49 Natalya Rozhnova [this message]
2017-05-16 14:24 ` Understanding Bluez mgmt events Johan Hedberg
2017-05-16 15:27   ` Natalya Rozhnova

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=CAMybWM3jHv75hrixjk3Ep8Er7Qkw8T5peKTN6SNE3qJLg9n2eg@mail.gmail.com \
    --to=rozhnova.natalya@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.