OSDN Git Service

Only provide generic audio service
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Apr 2007 19:56:52 +0000 (19:56 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 8 Apr 2007 19:56:52 +0000 (19:56 +0000)
acinclude.m4
audio/Makefile.am
audio/audio.service [new file with mode: 0644]
audio/headset.service [deleted file]
bootstrap-configure

index 754cb53..88696bc 100644 (file)
@@ -158,9 +158,9 @@ AC_DEFUN([AC_ARG_BLUEZ], [
        glib_enable=no
        obex_enable=${openobex_found}
        alsa_enable=${alsa_found}
-       headset_enable=no
        network_enable=no
        input_enable=no
+       audio_enable=no
        sync_enable=no
        echo_enable=no
        hcid_enable=yes
@@ -236,10 +236,6 @@ AC_DEFUN([AC_ARG_BLUEZ], [
                alsa_enable=${enableval}
        ])
 
-       AC_ARG_ENABLE(headset, AC_HELP_STRING([--enable-headset], [enable headset service]), [
-               headset_enable=${enableval}
-       ])
-
        AC_ARG_ENABLE(network, AC_HELP_STRING([--enable-network], [enable network service]), [
                network_enable=${enableval}
        ])
@@ -248,6 +244,10 @@ AC_DEFUN([AC_ARG_BLUEZ], [
                input_enable=${enableval}
        ])
 
+       AC_ARG_ENABLE(audio, AC_HELP_STRING([--enable-audio], [enable audio service]), [
+               audio_enable=${enableval}
+       ])
+
        AC_ARG_ENABLE(sync, AC_HELP_STRING([--enable-sync], [enable synchronization service]), [
                sync_enable=${enableval}
        ])
@@ -348,9 +348,9 @@ AC_DEFUN([AC_ARG_BLUEZ], [
        AM_CONDITIONAL(USB, test "${usb_enable}" = "yes" && test "${usb_found}" = "yes")
        AM_CONDITIONAL(OBEX, test "${obex_enable}" = "yes" && test "${openobex_found}" = "yes")
        AM_CONDITIONAL(ALSA, test "${alsa_enable}" = "yes" && test "${alsa_found}" = "yes")
-       AM_CONDITIONAL(HEADSETSERVICE, test "${headset_enable}" = "yes")
        AM_CONDITIONAL(NETWORKSERVICE, test "${network_enable}" = "yes")
        AM_CONDITIONAL(INPUTSERVICE, test "${input_enable}" = "yes")
+       AM_CONDITIONAL(AUDIOSERVICE, test "${audio_enable}" = "yes")
        AM_CONDITIONAL(SYNCSERVICE, test "${sync_enable}" = "yes" && test "${opensync_found}" = "yes")
        AM_CONDITIONAL(ECHOSERVICE, test "${echo_enable}" = "yes")
        AM_CONDITIONAL(HCID, test "${hcid_enable}" = "yes")
index 16c4f24..cbb2795 100644 (file)
@@ -1,19 +1,19 @@
 
-if HEADSETSERVICE
+if AUDIOSERVICE
 if CONFIGFILES
 confdir = $(sysconfdir)/bluetooth
 
-conf_DATA = headset.service
+conf_DATA = audio.service
 endif
 
 servicedir = $(libdir)/bluetooth
 
-service_PROGRAMS = bluetoothd-service-headset
+service_PROGRAMS = bluetoothd-service-audio
 
-bluetoothd_service_headset_SOURCES = headset.c
+bluetoothd_service_audio_SOURCES = manager.h manager.c headset.c
 
-bluetoothd_service_headset_LDADD = $(top_builddir)/common/libhelper.a \
-                               @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
+bluetoothd_service_audio_LDADD = $(top_builddir)/common/libhelper.a \
+                       @SBC_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
 endif
 
 if ALSA
@@ -30,17 +30,10 @@ libasound_module_ctl_bluetooth_la_LDFLAGS = -module -avoid-version -export-dynam
 libasound_module_ctl_bluetooth_la_LIBADD = @ALSA_LIBS@ 
 endif
 
-noinst_PROGRAMS = bluetoothd-service-audio
-
-bluetoothd_service_audio_SOURCES = main.c manager.h manager.c
-
-bluetoothd_service_audio_LDADD = $(top_builddir)/common/libhelper.a \
-                       @SBC_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
-
 AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @ALSA_CFLAGS@ @SBC_CFLAGS@
 
 INCLUDES = -I$(top_srcdir)/common
 
-EXTRA_DIST = headset.service audio-api.txt asound.conf
+EXTRA_DIST = audio.service audio-api.txt asound.conf
 
 MAINTAINERCLEANFILES = Makefile.in
diff --git a/audio/audio.service b/audio/audio.service
new file mode 100644 (file)
index 0000000..3db5aa3
--- /dev/null
@@ -0,0 +1,4 @@
+[Bluetooth Service]
+Identifier=audio
+Name=Audio service
+Description=Bluetooth Audio service
diff --git a/audio/headset.service b/audio/headset.service
deleted file mode 100644 (file)
index b2f043e..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-[Bluetooth Service]
-Identifier=headset
-Name=Headset service
-Description=Bluetooth Headset and Handsfree service
index e6fa883..c218840 100755 (executable)
@@ -14,9 +14,9 @@ fi
                --libexecdir=/lib \
                --enable-all \
                --enable-glib \
-               --enable-headset \
                --enable-network \
                --enable-input \
+               --enable-audio \
                --enable-echo \
                --disable-configfiles \
                --disable-initscripts \