Commit Graph

181 Commits

Author SHA1 Message Date
Lucas De Marchi
9cec49b283 build: Rename configfiles option to datafiles
Instead of passing --[disable|enable]-configfiles, now we use
--[disable|enable]-datafiles as not all of the files are installed for
configuration but are rather data files.
2011-07-01 20:47:23 -07:00
Bastien Nocera
c98f635b44 Add adaptername plugin
Replacing the name setting code in src/adapter.c.

Moving the adapter naming allows us to use the /etc/machine-info [1]
pretty hostname, as implemented by hostnamed [2] in systemd.

If /etc/machine-info is not present, the adapter name stored
on disk in /var/lib/bluetooth will be used. If no adapter name
has been set yet, the default from the main.conf will be used.

We don't currently number the name of hci0 if a pretty name is
available, but we should instead number it if it happens not
to be the default adapter. As we cannot be told when the default
adapter changes, we'll behave this way for now.

Note that when an adapter name is set automatically from
the pretty hostname, changing it through the D-Bus interface
will fail.

[1]: http://0pointer.de/public/systemd-man/machine-info.html
[2]: http://www.freedesktop.org/wiki/Software/systemd/hostnamed
2011-06-28 13:19:20 +03:00
Marcel Holtmann
c78787f6ff Update library version 2011-05-31 01:30:37 -07:00
Marcel Holtmann
595abb225e Fix the broken change for udevdir and PCMCIA 2011-05-31 01:29:35 -07:00
Nobuhiro Iwamatsu
5dd8b9aa11 Fix install path for udevdir
If PCMCIA enabled, udevdir value override from /lib/udev to
$(libexecdir)/udev.
2011-05-31 10:55:41 +03:00
Claudio Takahasi
991a7a4f09 Move EIR related functions to a new file 2011-05-17 09:07:28 -07:00
Claudio Takahasi
2b7a21cc33 Remove leftover of attrib plugin build 2011-05-02 17:48:14 -07:00
Kay Sievers
9fc7474d89 Move hid2hci to /lib/udev 2011-05-02 09:23:34 -07:00
Marcel Holtmann
71a7992392 Update library version 2011-04-25 12:22:02 -07:00
Bruna Moreira
d0b675088a Remove deprecated attrib plugin
The attrib plugin is deprecated and it is not used anymore. Remove it
and all related configuration. Note that GATT utility (gatttool)
configuration item was moved to Makefile.tools and it is compiled when
--enable-tools is used in configure.
2011-04-01 16:43:11 +03:00
Anderson Lizardo
a3e9d397f0 Move GATT example server to a standalone plugin
The GATT example server was in the same plugin as the GATT client.
Moving it to a separate plugin will allow to easily disable it.
2011-03-30 19:19:29 +03:00
Vinicius Costa Gomes
c6477c3ccc Move Attrib client to the core 2011-03-30 19:15:43 +03:00
Szymon Janc
d812870321 Add D-Bus OOB plugin
A sample OOB plugin that directly exposes OOB functionality over D-Bus.
2011-03-27 22:58:13 +03:00
Szymon Janc
75397433e8 Add initial support for Out of Band (OOB) association model 2011-03-27 22:52:54 +03:00
Waldemar Rymarkiewicz
f9dc0c0762 Add Sim Access Profile dummy driver
Add SAP dummy driver implementation and extend configure
with --with-sap=<driver>.
2011-03-23 14:57:45 +02:00
Marcel Holtmann
43bfa36567 Update library version 2011-03-15 19:54:49 -07:00
Waldemar Rymarkiewicz
caa8299225 Add Sim Access Profile Server
Add a Sim Access Server to the SAP plugin and a framework for the dummy
sap driver as well.

	* add the server register and unregister rutines
	* add server listening socket setup
	* add SAP DBus API
	* add prototypes for SAP protocol implementation
	* add skeleton of dummy SIM driver
2011-03-15 19:51:01 +02:00
Claudio Takahasi
3ed993262f Add new UUID utility functions
New UUID functions will store the UUIDs values on host order. Added
functions to create, compare and convert UUIDs.
2011-03-15 10:35:40 +02:00
Johan Hedberg
ea8db48924 Add media-api.txt to EXTRA_DIST 2011-03-14 13:41:16 +02:00
Waldemar Rymarkiewicz
e3c94accd0 Add Sim Access Profile Manager
Add a SAP plugin main file and the plugin manager. Also include the SAP
plugin in the Makefile.
2011-03-10 16:03:50 +02:00
Waldemar Rymarkiewicz
2534fbd05a Add Sim Access Profile API
New API for Sim Access Profile.
2011-03-10 16:03:40 +02:00
Marcel Holtmann
892a4b68a5 Fix indentation for source file list 2011-02-20 12:17:33 -08:00
Marcel Holtmann
c23a0f4713 Update library version 2011-02-20 12:13:08 -08:00
Sheldon Demario
eb4e1d6d4b Move do_connect() to a common file between interactive.c and gatttool.c
Since do_connect() is used in both interactive.c and gatttool.c
files, it was moved to a new file that should hold all common functions
2011-02-17 15:48:43 -03:00
Sheldon Demario
a523620a36 Add an initial interactive mode to gatttool
Mode required to allow better GATT procedures control. Some scenarios
require sequential commands without disconnection and delay between
operations. It is also desirable to change some connection parameters
of an active connection.
2011-02-15 14:17:37 -03:00
Marcel Holtmann
1bbbb1331c Update library version 2011-02-13 18:02:30 -08:00
Elvis Pfützenreuter
5d57b628c2 Add Health API document to distribution package 2011-01-27 17:54:38 +02:00
Claudio Takahasi
f9523a9bf5 Implement Discover Primary Service by Service UUID in the gatttool
Implement only the first interaction of the discovery procedure. If the
response doesn't fit in the MTU, "start" and "end" options can be used
to discover the handles ranges of the remaining primary service instances.
UUID16 and UUID128 are supported in the uuid option.

Usage example:
$gatttool -i hcix -b xx:xx:xx:xx:xx:xx --uuid=1801 --primary
2010-11-18 22:00:02 +02:00
Keith Mok
f127d461f5 Add iwmmxt optimization for sbc for pxa series cpu
Add iwmmxt optimization for sbc for pxa series cpu.

Benchmarked on ARM PXA platform:
===  Before (4 bands) ====
$ time  ./sbcenc_orig  -s 4     long.au  > /dev/null
real    0m 2.44s
user    0m 2.39s
sys     0m 0.05s
===  After (4 bands) ====
$ time  ./sbcenc  -s 4     long.au  > /dev/null
real    0m 1.59s
user    0m 1.49s
sys     0m 0.10s

===  Before (8 bands) ====
$ time  ./sbcenc_orig   -s 8     long.au  > /dev/null
real    0m 4.05s
user    0m 3.98s
sys     0m 0.07s
===  After (8 bands) ====
$ time  ./sbcenc  -s 8     long.au  > /dev/null
real    0m 1.48s
user    0m 1.41s
sys     0m 0.06s

===  Before (a2dp usage) ====
$ time  ./sbcenc_orig   -b53 -s8 -j    long.au  > /dev/null
real    0m 4.51s
user    0m 4.41s
sys     0m 0.10s
===  After (a2dp usage) ====
$ time  ./sbcenc   -b53 -s8 -j    long.au  > /dev/null
real    0m 2.05s
user    0m 1.99s
sys     0m 0.06s
2010-11-18 18:50:20 +02:00
Marcel Holtmann
45d99fcfeb Update library version 2010-11-09 02:04:48 +09:00
Marcel Holtmann
b653c1bbc2 Update library version 2010-11-06 12:33:21 +01:00
Johan Hedberg
12d02e7f22 Add initial definitions for the Bluetooth Management interface 2010-10-27 13:51:52 -04:00
Johan Hedberg
0c3e080828 Add initial skeleton for mgmtops 2010-10-27 11:21:38 -04:00
Johan Hedberg
3d036c6e01 Remove security.c completely from the source tree 2010-10-26 16:06:44 -04:00
Johan Hedberg
16d507e0bb Rename dbus-hci.c event.c and use btd_event_ prefix for it 2010-10-26 14:59:49 -04:00
Gustavo F. Padovan
82c56e3892 Fix linkage failure for bluetoothd
Adding -lrt fix the following errors in one of my systems:

health/mcap_sync.o: In function `initialize_caps':
/root/bluez/health/mcap_sync.c:341: undefined reference to `clock_getres'
/root/bluez/health/mcap_sync.c:350: undefined reference to `clock_gettime'
/root/bluez/health/mcap_sync.c:358: undefined reference to `clock_gettime'
/root/bluez/health/mcap_sync.c:363: undefined reference to `clock_gettime'
health/mcap_sync.o: In function `reset_tmstamp':
/root/bluez/health/mcap_sync.c:163: undefined reference to `clock_gettime'
health/mcap_sync.o: In function `mcap_get_timestamp':
/root/bluez/health/mcap_sync.c:309: undefined reference to `clock_gettime'
health/mcap_sync.o:/root/bluez/health/mcap_sync.c:514: more undefined references to `clock_gettime' follow
collect2: ld returned 1 exit status
make[1]: *** [src/bluetoothd] Error 1
make: *** [all] Error 2
2010-10-18 10:37:17 +03:00
Marcel Holtmann
719071c7b1 Fix the bluetooth.ver.in screwup 2010-10-06 14:11:53 +02:00
Marcel Holtmann
ecb835fca7 Remove netlink plugin 2010-10-06 10:21:11 +02:00
Marcel Holtmann
724d9f6a8f Update library version 2010-10-05 09:06:49 +02:00
Bruna Moreira
399d968958 Use bt_io_connect in gatttool
The gatttool was migrated to use bt_io_connect() instead of making
connections manually.
2010-09-30 17:26:55 -03:00
Johan Hedberg
9b4fa9f23b Add a2dp-codecs.h to dist 2010-09-22 12:53:06 +03:00
Lucas De Marchi
534be7a9c3 Simplify linker script
Version linker scripts support function names and globs, so there's no
need to rely on nm tool to gather the exported symbols.
2010-09-21 23:08:57 +03:00
Jose Antonio Santos Cadenas
bbbdb87fc6 Managing applications (create and destroy) 2010-09-17 16:34:53 +02:00
Santiago Carot-Nemesio
2792e639a9 Initial support for HDP plugin 2010-09-17 11:38:02 +02:00
Luiz Augusto von Dentz
f87e1bed13 Add initial implementation of org.bluez.Media spec 2010-09-15 15:21:53 +03:00
Luiz Augusto von Dentz
3622790d16 Add support for media transport in gstreamer plugin 2010-09-15 15:05:44 +03:00
Jose Antonio Santos Cadenas
bccb8dd7f6 Fix mcap INCLUDES variable
With the extra tab at the beginning of the line the includes
are not found correctly.
2010-09-15 13:26:04 +02:00
Zhenhua Zhang
f57cb78379 btio: Seperate btio.[ch] into btio directory
Seperate btio.[ch] from src directory to btio sub-folder.
2010-09-13 11:23:02 +03:00
Marcel Holtmann
30ed3e4a21 Add gdbus/polkit.c file to sources list 2010-09-09 18:31:24 +02:00
Waldemar Rymarkiewicz
926915d17b Fix clean-local target
The fix avoids failure of the second consequent call of 'make clean'.
2010-09-07 12:42:52 +03:00