Skip to contentSkip to conversation

bluez dbus

Bluez-devel Aleksandar Kanchev 2 participants 2 messages May 10, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hello,

would someone please explain to me why does bluez support D-Bus? What are the advantages by using dbus instead of simply linking and using the bluez C library?

Thanks

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#1 lore raw

Hi Aleksander,

Quoted 3 lines

would someone please explain to me why does bluez support D-Bus? What are the advantages by using dbus instead of simply linking and using the bluez C library?

a C library has no concept of privilege separation. Every client would have to be setuid-root since there are tasks that require root privileges. Without a suid-root client, we would need a message passing interface within hcid for these task. And guess what D-Bus is.

Also D-Bus provides bindings for almost every language and the license for a Bluetooth client using D-Bus is no longer bound to the GPL.

Besides that are multiple technical reasons why D-Bus is the right choice for a Bluetooth API.

Regards

Marcel

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel