Skip to contentSkip to conversation

[Bluez-devel] [Fwd: Re: Removing features]

Bluez-devel Bastien Nocera 1 participant 1 message Feb 6, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Re-sending at Marcel's request.

Signature · 1 line
Bastien Nocera <[email protected]> 

Hey Marcel,

Quoted 1 line · Marcel Holtmann

Hi Bastien,

<snip>

Quoted 6 lines
Quoted 4 lines

Did you want to make HAL a hard dependency, or should it be optional as now?

I'll finish that up now.

do we need something? I thought they are D-Bus calls only.

Yep, libhal. Reimplementing the query functions, etc. would be a PITA. See attached patch.

Quoted 9 lines
Quoted 8 lines
Quoted 3 lines

The other thing is that this doesn't really belong into bluetooth-applet and should be moved directly into hcid. However this might give some crazy dependency chain.

I don't think such a policy should be in hcid, but rather in the desktop bits. (Currently, the bluetooth daemons are started a long time before HAL is, at least in Fedora, and Matthew Garrett's HAL bits need the bluetooth daemon running, so, yeah, crazy deps).

Quoted 4 lines

In general you are right, but tell that to the Bluetooth specification. The class of device is really a per adapter thing and not a per user thing unless we can assign specific hardware only to one particular user.

I understand that. But hcid can be run on other types of Linux devices, which wouldn't have HAL available, or need more flexibility than what the bluez GNOME applets and properties might allow. As the properties and applet are integrated together, it makes sense to have them rely on each other.

As for the Bluetooth specs saying there can only be one class per adapter, I don't see how that's different from the properties allowing different users to set a different visible name for the adapter. Similar problem to users having different power preferences with gnome-power-manager, or network settings with NetworkManager. This is something to revisit when ConsoleKit reaches maturity.

I hope you like the attached patch.

Cheers (and merry Christmas ;)

Signature · 1 line
Bastien Nocera <[email protected]>

Index: configure.in
===================================================================
RCS file: /cvsroot/bluez/gnome/configure.in,v
retrieving revision 1.30

configure.in +6 -0
diff -u -p -u -p -r1.30 configure.in
@@ -57,6 +57,12 @@ PKG_CHECK_MODULES(NOTIFY, libnotify >= 0
 AC_SUBST(NOTIFY_CFLAGS)
 AC_SUBST(NOTIFY_LIBS)
 
+PKG_CHECK_MODULES(HAL, hal >= 0.5.8, [
+	AC_DEFINE(HAVE_HAL, 1, [Define to 1 if you have HAL support.])
+], AC_MSG_RESULT(no))
+AC_SUBST(HAL_CFLAGS)
+AC_SUBST(HAL_LIBS)
+
 PKG_CHECK_MODULES(OPENOBEX, libopenobex-glib >= 1.4, dummy=yes, AC_MSG_RESULT(no))
 AC_SUBST(OPENOBEX_CFLAGS)
 AC_SUBST(OPENOBEX_LIBS)

Index: applet/Makefile.am
===================================================================
RCS file: /cvsroot/bluez/gnome/applet/Makefile.am,v retrieving revision 1.14

Makefile.am +2 -2
diff -u -p -u -p -r1.14 Makefile.am
@@ -3,9 +3,9 @@ bin_PROGRAMS = bluetooth-applet
 
 bluetooth_applet_SOURCES = main.c
 
-bluetooth_applet_LDADD = @NOTIFY_LIBS@ @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ $(top_builddir)/compat/libcompat.a
+bluetooth_applet_LDADD = @NOTIFY_LIBS@ @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ @HAL_LIBS@ $(top_builddir)/compat/libcompat.a
 
-AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@ @NOTIFY_CFLAGS@
+AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@ @NOTIFY_CFLAGS@ @HAL_CFLAGS@
 
 INCLUDES = -I$(top_srcdir)/compat
 

Index: applet/main.c
===================================================================
RCS file: /cvsroot/bluez/gnome/applet/main.c,v
retrieving revision 1.49

main.c +82 -0

100 lines not on this page · raw message

Index: properties/Makefile.am
===================================================================
RCS file: /cvsroot/bluez/gnome/properties/Makefile.am,v retrieving revision 1.6

Makefile.am +2 -2
diff -u -p -u -p -r1.6 Makefile.am
@@ -3,10 +3,10 @@ bin_PROGRAMS = bluetooth-properties
 
 bluetooth_properties_SOURCES = main.c
 
-bluetooth_properties_LDADD = @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ \
+bluetooth_properties_LDADD = @GTK_LIBS@ @GCONF_LIBS@ @DBUS_LIBS@ @HAL_LIBS@ \
 				$(top_builddir)/common/libcommon.a
 
-AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@
+AM_CFLAGS = @DBUS_CFLAGS@ @GCONF_CFLAGS@ @GTK_CFLAGS@ @HAL_CFLAGS@
 
 desktopdir = $(datadir)/applications
 

Index: properties/main.c
===================================================================
RCS file: /cvsroot/bluez/gnome/properties/main.c,v retrieving revision 1.24

main.c +103 -42

207 lines not on this page · raw message

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel