[RFC] HAL/Bluez integration
Richard Hughes
hughsient at gmail.com
Sun Jun 11 14:14:20 PDT 2006
On Sun, 2006-06-11 at 21:45 +0100, Matthew Garrett wrote:
> I've put a tarball up at
> http://www.codon.org.uk/~mjg59/tmp/hal-bluetooth.tar.gz as a first
> attempt at some degree of integration. The current interface is
> basically:
> Obligatory screenshot - http://www.codon.org.uk/~mjg59/tmp/bluetooth.png
Wow, this looks great. :-)
A few minor points: you need to add:
<append key="org.freedesktop.Hal.Device.Bluetooth.method_argnames"
type="strlist">foo</append>
for the introspection stuff to work correctly.
Ohh, and the Makefile doesn't work for me on fedora:
gcc -g `pkg-config --cflags hal glib` `pkg-config --libs hal glib`
hal-system-bluetooth-browse.c -o hal-system-bluetooth-browse
should probably be:
gcc -g `pkg-config --cflags hal glib-2.0` `pkg-config --libs hal
glib-2.0` hal-system-bluetooth-browse.c -o hal-system-bluetooth-browse
else I get "glib-config: command not found"
Also you probably want to replace /usr/lib/hal with /usr/libexec as this
is where the files in CVS go.
And you probably want a:
cp 20-bluetooth-methods.fdi /usr/share/hal/fdi/policy/10osvendor/
in the install line too.
The patch shows up my bluetooth adapter, but doesn't populate any
devices when I do:
dbus-send --system
--dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/usb_device_f4d_1000_noserial_if0_bluetooth_hci org.freedesktop.Hal.Device.Bluetooth.Scan
I've tried with and without hcid and sdpd running.
Hope that helps,
Richard.
More information about the hal
mailing list