public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Fredrik Noring <noring@nocrew.org>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] D-Bus interfaces
Date: Sun, 08 Feb 2004 23:15:54 +0100	[thread overview]
Message-ID: <1076278554.14742.112.camel@akka.yeti.nocrew.org> (raw)
In-Reply-To: <1076277250.6869.24.camel@pegasus>

Hi Marcel

On Sun, 2004-02-08 at 22:54, Marcel Holtmann wrote:
> It is Bluetooth we are talking about, so use "bluetooth.org" even if we
> don't own the domain. I don't care, because it is only a name ;)

Well, please look at the names Freedeskop uses in DBus for 
generic things like disconnect signals. They actually use the
"freedesktop" interface. :)

> The interface is about access to a specific service or protocol, so I
> want to use "hci". The hcid is only the implementation of it. For the
> future I also think about having D-Bus interfaces for "sdp", "hid" etc.

OK.

> Why not a list of devices and then an extra method for every element? I
> want to make this interface as open and as extendable as possible.

The reason is efficiency and ease of use. It's much more efficient to
get everything in one batch when this is what's needed anyway. The
dictionaries make this method call extremely extendable. We can also 
add complementary method calls if needed.

> Of course, this is obvious. What format do we use for the parameter. You
> show it as string. This means "hci0" or "11:22:33:44:55:66" or both?

I think both should be allowed. Currently only "hciX" is implemented.

> And I prefer also to have get_name. See comment above.

OK. Adding new methods is no problem.

> We must also have something for remote names, so set_local_name,
> get_remote_name etc. would maybe better.

Agreed, but these should not be implemented in the "device" interface
because this isn't a device property.

> I don't wanna use the name "keytab". Maybe "pairing_list". Something
> like "is_paired(src, dst)" would also be nice.

OK.

> Yes, but "delete" is too generic.

Not in a "key pair" context, I think.

> Now you see that I don't really like the object oriented stuff. I see no
> need for "keytab", "nametab" etc. I see this interface more as somekind
> of multiplexing for HCI.

This isn't about objects. It's about modularisation. The new hcid
implementation is much more modular than the previous version, made to
enable plugin modules/services. It's really a very good idea to keep
conceptually different things like "key pairs" and "name lookups" apart,
using different interfaces.

> Can these signal also give us the new values? Like the HCI events. For
> example local_name_changed().

Yes, signals can carry arguments.

Fredrik

  reply	other threads:[~2004-02-08 22:15 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-08 18:35 [Bluez-devel] D-Bus support Marcel Holtmann
2004-02-08 18:51 ` Fredrik Noring
2004-02-08 19:09   ` Marcel Holtmann
2004-02-08 21:07     ` Fredrik Noring
2004-02-08 22:04       ` Marcel Holtmann
2004-02-08 22:33         ` Fredrik Noring
2004-02-08 21:28     ` [Bluez-devel] D-Bus interfaces Fredrik Noring
2004-02-08 21:54       ` Marcel Holtmann
2004-02-08 22:15         ` Fredrik Noring [this message]
2004-02-08 22:31           ` Marcel Holtmann
2004-02-08 22:50             ` Fredrik Noring
2004-02-08 23:19               ` Marcel Holtmann
2004-02-08 23:51                 ` Fredrik Noring
2004-02-09  0:38                   ` Marcel Holtmann
2004-02-09  7:22                     ` Fredrik Noring
2004-02-09 10:06                       ` Marcel Holtmann
2004-02-09 10:22                         ` Fredrik Noring
2004-02-09 10:38                           ` Marcel Holtmann
2004-02-09 10:46                             ` Fredrik Noring
2004-02-09 11:03                               ` Marcel Holtmann
2004-02-09 11:53                                 ` Fredrik Noring
2004-02-09 13:01                                   ` Marcel Holtmann
2004-02-09 13:23                                     ` Fredrik Noring
2004-02-09 15:46                                       ` Marcel Holtmann
2004-02-09 16:05                                         ` Fredrik Noring
2004-02-09 16:30                                           ` Marcel Holtmann
2004-02-09 17:04                                             ` Fredrik Noring
2004-02-11 10:03                             ` Fredrik Noring
2004-02-11 13:32                               ` Marcel Holtmann
2004-02-11 14:05                                 ` Fredrik Noring
2004-02-11 16:45                                   ` Marcel Holtmann
2004-02-11 22:00                                     ` Fredrik Noring
2004-02-11 22:29                                       ` Marcel Holtmann
2004-02-11 22:33                                         ` Fredrik Noring
2004-02-11 12:32                             ` Fredrik Noring
2004-02-11 13:28                               ` Marcel Holtmann
2004-02-11 14:35                                 ` Fredrik Noring
2004-02-11 17:05                                   ` Marcel Holtmann
2004-02-11 22:25                                     ` Fredrik Noring
2004-02-11 22:42                                       ` Marcel Holtmann
2004-02-11 22:57                                         ` Fredrik Noring
2004-02-11 23:14                                           ` Marcel Holtmann
2004-02-11 23:29                                             ` Fredrik Noring
2004-02-11 23:36                                               ` Marcel Holtmann
2004-02-11 23:41                                                 ` Fredrik Noring
2004-02-11 23:46                                                   ` Marcel Holtmann
2004-02-08 23:15             ` Fred Schättgen
2004-02-16 14:46               ` Phil Blundell
2004-02-16 15:36                 ` Marcel Holtmann
2004-02-16 15:41                   ` Phil Blundell
2004-02-17 22:59                     ` Marcel Holtmann
2004-02-17 23:38                       ` Philip Blundell
2004-02-17 23:44                         ` Marcel Holtmann
2004-02-17 23:49                           ` Philip Blundell
2004-02-17 23:57                             ` Marcel Holtmann
2004-02-18  0:08                               ` Philip Blundell
2004-02-18  0:17                                 ` Marcel Holtmann
2004-02-18  0:29                                   ` Philip Blundell
2004-02-19 15:55                                     ` Fredrik Noring
2004-02-19 16:01                       ` Fredrik Noring
2004-02-19 15:52                 ` Fredrik Noring
2004-02-19 16:48                   ` Phil Blundell
2004-02-20  4:04                     ` Fredrik Noring

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=1076278554.14742.112.camel@akka.yeti.nocrew.org \
    --to=noring@nocrew.org \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=marcel@holtmann.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