summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <joao.vita@gmail.com>2008-08-29 20:22:14 -0300
committerLennart Poettering <lennart@poettering.net>2008-09-11 01:12:10 +0300
commit78a3c72f60646ab9a44eab94b3afa4652ddeb8db (patch)
tree2721428a2b41562f5085132e7d19822c8b9b9878
parent76bae38460807d2c9f877f546f2b8be2ef728378 (diff)
Move bluetooth discover and device modules to src/modules/bluetooth
-rw-r--r--src/Makefile.am56
-rw-r--r--src/modules/bluetooth/ipc.c (renamed from src/modules/bt-ipc.c)2
-rw-r--r--src/modules/bluetooth/ipc.h (renamed from src/modules/bt-ipc.h)0
-rw-r--r--src/modules/bluetooth/module-bluetooth-device.c (renamed from src/modules/module-bt-device.c)8
-rw-r--r--src/modules/bluetooth/module-bluetooth-discover.c (renamed from src/modules/module-bt-discover.c)2
-rw-r--r--src/modules/bluetooth/rtp.h (renamed from src/modules/bt-rtp.h)0
-rw-r--r--src/modules/bluetooth/sbc.c (renamed from src/modules/bt-sbc.c)6
-rw-r--r--src/modules/bluetooth/sbc.h (renamed from src/modules/bt-sbc.h)0
-rw-r--r--src/modules/bluetooth/sbc_math.h (renamed from src/modules/bt-sbc_math.h)0
-rw-r--r--src/modules/bluetooth/sbc_tables.h (renamed from src/modules/bt-sbc_tables.h)0
10 files changed, 37 insertions, 37 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 6e396811..c5af829f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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 #
diff --git a/src/modules/bt-ipc.c b/src/modules/bluetooth/ipc.c
index e585328e..e7b712da 100644
--- a/src/modules/bt-ipc.c
+++ b/src/modules/bluetooth/ipc.c
@@ -20,7 +20,7 @@
*
*/
-#include "bt-ipc.h"
+#include "ipc.h"
/* This table contains the string representation for messages */
static const char *strmsg[] = {
diff --git a/src/modules/bt-ipc.h b/src/modules/bluetooth/ipc.h
index c900fcd1..c900fcd1 100644
--- a/src/modules/bt-ipc.h
+++ b/src/modules/bluetooth/ipc.h
diff --git a/src/modules/module-bt-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 654130bf..335a8ed5 100644
--- a/src/modules/module-bt-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -45,10 +45,10 @@
#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
diff --git a/src/modules/module-bt-discover.c b/src/modules/bluetooth/module-bluetooth-discover.c
index 2b0d6c5f..12473dff 100644
--- a/src/modules/module-bt-discover.c
+++ b/src/modules/bluetooth/module-bluetooth-discover.c
@@ -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");
diff --git a/src/modules/bt-rtp.h b/src/modules/bluetooth/rtp.h
index 690bd43a..690bd43a 100644
--- a/src/modules/bt-rtp.h
+++ b/src/modules/bluetooth/rtp.h
diff --git a/src/modules/bt-sbc.c b/src/modules/bluetooth/sbc.c
index 8e7b0607..6303421f 100644
--- a/src/modules/bt-sbc.c
+++ b/src/modules/bluetooth/sbc.c
@@ -41,10 +41,10 @@
#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
diff --git a/src/modules/bt-sbc.h b/src/modules/bluetooth/sbc.h
index ab47e329..ab47e329 100644
--- a/src/modules/bt-sbc.h
+++ b/src/modules/bluetooth/sbc.h
diff --git a/src/modules/bt-sbc_math.h b/src/modules/bluetooth/sbc_math.h
index b3d87a62..b3d87a62 100644
--- a/src/modules/bt-sbc_math.h
+++ b/src/modules/bluetooth/sbc_math.h
diff --git a/src/modules/bt-sbc_tables.h b/src/modules/bluetooth/sbc_tables.h
index 7ac4e68b..7ac4e68b 100644
--- a/src/modules/bt-sbc_tables.h
+++ b/src/modules/bluetooth/sbc_tables.h