Move bluetooth discover and device modules to src/modules/bluetooth
authorJoão Paulo Rechi Vita <joao.vita@gmail.com>
Fri, 29 Aug 2008 23:22:14 +0000 (20:22 -0300)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Sep 2008 22:12:10 +0000 (01:12 +0300)
src/Makefile.am
src/modules/bluetooth/ipc.c [moved from src/modules/bt-ipc.c with 99% similarity]
src/modules/bluetooth/ipc.h [moved from src/modules/bt-ipc.h with 100% similarity]
src/modules/bluetooth/module-bluetooth-device.c [moved from src/modules/module-bt-device.c with 99% similarity]
src/modules/bluetooth/module-bluetooth-discover.c [moved from src/modules/module-bt-discover.c with 99% similarity]
src/modules/bluetooth/rtp.h [moved from src/modules/bt-rtp.h with 100% similarity]
src/modules/bluetooth/sbc.c [moved from src/modules/bt-sbc.c with 99% similarity]
src/modules/bluetooth/sbc.h [moved from src/modules/bt-sbc.h with 100% similarity]
src/modules/bluetooth/sbc_math.h [moved from src/modules/bt-sbc_math.h with 100% similarity]
src/modules/bluetooth/sbc_tables.h [moved from src/modules/bt-sbc_tables.h with 100% similarity]

index 6e39681..c5af829 100644 (file)
@@ -45,7 +45,7 @@ endif
 #     Compiler/linker flags       #
 ###################################
 
-AM_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src/modules -I$(top_builddir)/src/modules/rtp -I$(top_builddir)/src/modules/gconf
+AM_CFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src/modules -I$(top_builddir)/src/modules/rtp -I$(top_builddir)/src/modules/gconf -I$(top_builddir)/src/modules/bluetooth
 AM_CFLAGS += $(PTHREAD_CFLAGS) -D_POSIX_PTHREAD_SEMANTICS
 AM_CFLAGS += $(LTDLINCL)
 AM_CFLAGS += $(LIBSAMPLERATE_CFLAGS) $(LIBSNDFILE_CFLAGS) $(LIBSPEEX_CFLAGS)
@@ -1161,10 +1161,10 @@ endif
 if HAVE_BLUEZ
 modlibexec_LTLIBRARIES += \
                module-bt-proximity.la \
-               module-bt-discover.la \
-               libbt-ipc.la \
-               libbt-sbc.la \
-               module-bt-device.la
+               module-bluetooth-discover.la \
+               libbluetooth-ipc.la \
+               libbluetooth-sbc.la \
+               module-bluetooth-device.la
 
 pulselibexec_PROGRAMS += \
                bt-proximity-helper
@@ -1224,8 +1224,8 @@ SYMDEF_FILES = \
                modules/module-suspend-on-idle-symdef.h \
                modules/module-hal-detect-symdef.h \
                modules/module-bt-proximity-symdef.h \
-               modules/module-bt-discover-symdef.h \
-               modules/module-bt-device-symdef.h \
+               modules/bluetooth/module-bluetooth-discover-symdef.h \
+               modules/bluetooth/module-bluetooth-device-symdef.h \
                modules/gconf/module-gconf-symdef.h \
                modules/module-position-event-sounds-symdef.h \
                modules/module-console-kit-symdef.h
@@ -1237,6 +1237,7 @@ $(SYMDEF_FILES): modules/module-defs.h.m4
        $(MKDIR_P) modules
        $(MKDIR_P) modules/gconf
        $(MKDIR_P) modules/rtp
+       $(MKDIR_P) modules/bluetooth
        $(M4) -Dfname="$@" $< > $@
 
 # Simple protocol
@@ -1566,27 +1567,26 @@ bt_proximity_helper_LDADD = $(AM_LDADD) $(BLUEZ_LIBS)
 bt_proximity_helper_CFLAGS = $(AM_CFLAGS) $(BLUEZ_CFLAGS)
 bt_proximity_helper_LDFLAGS = $(AM_LDFLAGS) $(BINLDFLAGS)
 
-# Bluetooth discover
-module_bt_discover_la_SOURCES = modules/module-bt-discover.c
-module_bt_discover_la_LDFLAGS = -module -avoid-version
-module_bt_discover_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore.la libdbus-util.la
-module_bt_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
-
-# Bluetooth device
-libbt_sbc_la_SOURCES = modules/bt-sbc.c modules/bt-sbc.h modules/bt-sbc_tables.h modules/bt-sbc_math.h
-libbt_sbc_la_LDFLAGS = -avoid-version
-libbt_sbc_la_LIBADD = $(AM_LIBADD)
-libbt_sbc_la_CFLAGS = $(AM_CFLAGS)
-
-libbt_ipc_la_SOURCES = modules/bt-ipc.c modules/bt-ipc.h
-libbt_ipc_la_LDFLAGS = -avoid-version
-libbt_ipc_la_LIBADD = $(AM_LIBADD)
-libbt_ipc_la_CFLAGS = $(AM_CFLAGS)
-
-module_bt_device_la_SOURCES = modules/module-bt-device.c
-module_bt_device_la_LDFLAGS = -module -avoid-version
-module_bt_device_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore.la libdbus-util.la libbt-ipc.la libbt-sbc.la libsocket-util.la
-module_bt_device_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
+# Bluetooth sink / source
+module_bluetooth_discover_la_SOURCES = modules/bluetooth/module-bluetooth-discover.c
+module_bluetooth_discover_la_LDFLAGS = -module -avoid-version
+module_bluetooth_discover_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore.la libdbus-util.la
+module_bluetooth_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
+
+libbluetooth_sbc_la_SOURCES = modules/bluetooth/sbc.c modules/bluetooth/sbc.h modules/bluetooth/sbc_tables.h modules/bluetooth/sbc_math.h
+libbluetooth_sbc_la_LDFLAGS = -avoid-version
+libbluetooth_sbc_la_LIBADD = $(AM_LIBADD)
+libbluetooth_sbc_la_CFLAGS = $(AM_CFLAGS)
+
+libbluetooth_ipc_la_SOURCES = modules/bluetooth/ipc.c modules/bluetooth/ipc.h
+libbluetooth_ipc_la_LDFLAGS = -avoid-version
+libbluetooth_ipc_la_LIBADD = $(AM_LIBADD)
+libbluetooth_ipc_la_CFLAGS = $(AM_CFLAGS)
+
+module_bluetooth_device_la_SOURCES = modules/bluetooth/module-bluetooth-device.c
+module_bluetooth_device_la_LDFLAGS = -module -avoid-version
+module_bluetooth_device_la_LIBADD = $(AM_LIBADD) $(DBUS_LIBS) libpulsecore.la libdbus-util.la libbluetooth-ipc.la libbluetooth-sbc.la libsocket-util.la
+module_bluetooth_device_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
 
 ###################################
 #        Some minor stuff         #
similarity index 99%
rename from src/modules/bt-ipc.c
rename to src/modules/bluetooth/ipc.c
index e585328..e7b712d 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "bt-ipc.h"
+#include "ipc.h"
 
 /* This table contains the string representation for messages */
 static const char *strmsg[] = {
similarity index 99%
rename from src/modules/module-bt-device.c
rename to src/modules/bluetooth/module-bluetooth-device.c
index 654130b..335a8ed 100644 (file)
 #include <pulsecore/rtclock.h>
 
 #include "dbus-util.h"
-#include "module-bt-device-symdef.h"
-#include "bt-ipc.h"
-#include "bt-sbc.h"
-#include "bt-rtp.h"
+#include "module-bluetooth-device-symdef.h"
+#include "ipc.h"
+#include "sbc.h"
+#include "rtp.h"
 
 #define DEFAULT_SINK_NAME "bluetooth_sink"
 #define BUFFER_SIZE 2048
similarity index 99%
rename from src/modules/module-bt-discover.c
rename to src/modules/bluetooth/module-bluetooth-discover.c
index 2b0d6c5..12473df 100644 (file)
@@ -34,7 +34,7 @@
 #include <pulsecore/llist.h>
 
 #include "dbus-util.h"
-#include "module-bt-discover-symdef.h"
+#include "module-bluetooth-discover-symdef.h"
 
 PA_MODULE_AUTHOR("Joao Paulo Rechi Vita");
 PA_MODULE_DESCRIPTION("Detect available bluetooth audio devices and load bluetooth audio drivers");
similarity index 99%
rename from src/modules/bt-sbc.c
rename to src/modules/bluetooth/sbc.c
index 8e7b060..6303421 100644 (file)
 #include <stdlib.h>
 #include <sys/types.h>
 
-#include "bt-sbc_math.h"
-#include "bt-sbc_tables.h"
+#include "sbc_math.h"
+#include "sbc_tables.h"
 
-#include "bt-sbc.h"
+#include "sbc.h"
 
 #define SBC_SYNCWORD   0x9C