2004-02-24 21:17:15

by Fredrik Noring

[permalink] [raw]
Subject: [PATCH] hcid configuration management through DBus

Hi

Attached patch implements configuration management through DBus
and also includes an updated hcid.1 man page.

Device configurations are maintained in hcid.conf. Device section
inheritance is implemented, so that parameters in the default
devices section are inherited in sections with specifiers such as
Bluetooth interface or address.

Example:

device {
name "BlueZ (%d)"
class 0x100;
}

device 00:03:C9:2A:C4:A8 {
name "Lingon"
# "class" parameter is inherited
}

Apart from a couple of FIXME:s such as better signal handling, I
think hcid is quite feature complete for an initial release with
DBus server support. Phil's pin thing should be possible to merge
as well, it was DBus client right?

The rest of the patches as well as a Gnome Bluetooth Configuration
utility is available at: http://noring.nocrew.org/bluetooth/

Fredrik

conf.c | 556 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
conf.h | 76 ++++----
device.c | 471 +++++++++++++++++++++++++++++++++++++++++++++++++--
device.h | 7
hcid.1 | 214 +++++++++++++++++++++++
hcid.h | 8
keytab.c | 2
lib.c | 11 -
lib.h | 2
main.c | 419 ++-------------------------------------------
nametab.c | 11 -
parser.y | 129 +++++++-------
pin.c | 56 +++---
pin.h | 2
security.c | 8
str.c | 7
str.h | 2


Attachments:
bluez-utils-2.4-fn9.patch (62.38 kB)