mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
bluetooth: Create module-bluez5-device
This commit is contained in:
parent
a5fdf965ed
commit
384f4751eb
2 changed files with 51 additions and 1 deletions
|
|
@ -1335,7 +1335,8 @@ endif
|
||||||
if HAVE_BLUEZ_5
|
if HAVE_BLUEZ_5
|
||||||
modlibexec_LTLIBRARIES += \
|
modlibexec_LTLIBRARIES += \
|
||||||
libbluez5-util.la \
|
libbluez5-util.la \
|
||||||
module-bluez5-discover.la
|
module-bluez5-discover.la \
|
||||||
|
module-bluez5-device.la
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if HAVE_OPENSSL
|
if HAVE_OPENSSL
|
||||||
|
|
@ -1428,6 +1429,7 @@ SYMDEF_FILES = \
|
||||||
module-bluez4-discover-symdef.h \
|
module-bluez4-discover-symdef.h \
|
||||||
module-bluez4-device-symdef.h \
|
module-bluez4-device-symdef.h \
|
||||||
module-bluez5-discover-symdef.h \
|
module-bluez5-discover-symdef.h \
|
||||||
|
module-bluez5-device-symdef.h \
|
||||||
module-raop-sink-symdef.h \
|
module-raop-sink-symdef.h \
|
||||||
module-raop-discover-symdef.h \
|
module-raop-discover-symdef.h \
|
||||||
module-gconf-symdef.h \
|
module-gconf-symdef.h \
|
||||||
|
|
@ -2062,6 +2064,11 @@ module_bluez5_discover_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||||
module_bluez5_discover_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libbluez5-util.la
|
module_bluez5_discover_la_LIBADD = $(MODULE_LIBADD) $(DBUS_LIBS) libbluez5-util.la
|
||||||
module_bluez5_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
|
module_bluez5_discover_la_CFLAGS = $(AM_CFLAGS) $(DBUS_CFLAGS)
|
||||||
|
|
||||||
|
module_bluez5_device_la_SOURCES = modules/bluetooth/module-bluez5-device.c
|
||||||
|
module_bluez5_device_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||||
|
module_bluez5_device_la_LIBADD = $(MODULE_LIBADD) $(SBC_LIBS) libbluez5-util.la
|
||||||
|
module_bluez5_device_la_CFLAGS = $(AM_CFLAGS) $(SBC_CFLAGS)
|
||||||
|
|
||||||
# Apple Airtunes/RAOP
|
# Apple Airtunes/RAOP
|
||||||
module_raop_sink_la_SOURCES = modules/raop/module-raop-sink.c
|
module_raop_sink_la_SOURCES = modules/raop/module-raop-sink.c
|
||||||
module_raop_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
|
module_raop_sink_la_LDFLAGS = $(MODULE_LDFLAGS)
|
||||||
|
|
|
||||||
43
src/modules/bluetooth/module-bluez5-device.c
Normal file
43
src/modules/bluetooth/module-bluez5-device.c
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
/***
|
||||||
|
This file is part of PulseAudio.
|
||||||
|
|
||||||
|
Copyright 2008-2013 João Paulo Rechi Vita
|
||||||
|
Copyright 2011-2013 BMW Car IT GmbH.
|
||||||
|
|
||||||
|
PulseAudio is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Lesser General Public License as
|
||||||
|
published by the Free Software Foundation; either version 2.1 of the
|
||||||
|
License, or (at your option) any later version.
|
||||||
|
|
||||||
|
PulseAudio is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with PulseAudio; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
|
||||||
|
USA.
|
||||||
|
***/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <pulsecore/module.h>
|
||||||
|
|
||||||
|
#include "bluez5-util.h"
|
||||||
|
|
||||||
|
#include "module-bluez5-device-symdef.h"
|
||||||
|
|
||||||
|
PA_MODULE_AUTHOR("João Paulo Rechi Vita");
|
||||||
|
PA_MODULE_DESCRIPTION("BlueZ 5 Bluetooth audio sink and source");
|
||||||
|
PA_MODULE_VERSION(PACKAGE_VERSION);
|
||||||
|
PA_MODULE_LOAD_ONCE(false);
|
||||||
|
|
||||||
|
int pa__init(pa_module* m) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void pa__done(pa_module *m) {
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue