Commit Graph

12520 Commits

Author SHA1 Message Date
Marcel Holtmann
e0f960e038 unit: Use GTest for EIR unit test 2012-12-09 10:29:40 +01:00
Marcel Holtmann
c45b8edf38 build: Enable bccmd utility when tools are enabled 2012-12-09 10:17:57 +01:00
Marcel Holtmann
f30648032c build: Move GATT example plugin to Makefile.plugins 2012-12-09 10:09:44 +01:00
Marcel Holtmann
9507ea3a91 build: Use a separate Makefile.plugins 2012-12-09 10:05:17 +01:00
Marcel Holtmann
d8fa61f92a build: Remove left-over $(mcap_sources) variable 2012-12-09 10:00:40 +01:00
Marcel Holtmann
c8ee5ee4ac build: Remove another left-over from .gitignore 2012-12-09 01:34:45 +01:00
Marcel Holtmann
149803cffb build: Remove unused empty storage plugin stub 2012-12-09 01:32:09 +01:00
Marcel Holtmann
bc974ed905 build: Use a separate Makefile.profiles 2012-12-09 01:26:22 +01:00
Marcel Holtmann
2b38f5ee63 build: Remove two left-overs from .gitignore 2012-12-09 01:05:34 +01:00
Marcel Holtmann
f6168cfe82 build: Remove old PCMCIA serial support 2012-12-09 00:59:22 +01:00
Marcel Holtmann
0613f64410 tools: Remove dfutool utility
This tool got replaced with dfu-util from http://dfu-util.gnumonks.org/
2012-12-09 00:50:54 +01:00
Marcel Holtmann
3b886d255b build: Remove compat helper for ppoll 2012-12-09 00:42:26 +01:00
Marcel Holtmann
bffd612cad tools: Remove include of compat ppoll header 2012-12-09 00:42:07 +01:00
Marcel Holtmann
8ece6196e2 build: Compile bluetoothd without OUI helper function 2012-12-09 00:38:39 +01:00
Marcel Holtmann
3c96d235a9 core: Add support for udev based batocomp implementation 2012-12-09 00:36:41 +01:00
Marcel Holtmann
fc771c9972 build: Check for existence of udev_hwdb_new function 2012-12-09 00:17:30 +01:00
Marcel Holtmann
acc35edff7 core: Remove --udev option from bluetoothd 2012-12-09 00:09:00 +01:00
Marcel Holtmann
48371157e1 core: Make ouitocomp function private 2012-12-09 00:03:48 +01:00
Marcel Holtmann
4ba84c72f1 tools: Use batocomp function instead of ouitocomp 2012-12-09 00:02:22 +01:00
Marcel Holtmann
d47f4a0410 core: Introduce batocomp helper function 2012-12-08 23:48:30 +01:00
Marcel Holtmann
61afd46c85 core: Use default for oui.txt if not configured 2012-12-08 22:46:53 +01:00
Marcel Holtmann
8543d3020d core: Remove unused oui2comp function 2012-12-08 22:44:20 +01:00
Szymon Janc
8c4bb23c1b gitignore: Add test/bluezutils.pyc
Python generates compiled module file when py module is used.
2012-12-08 13:45:01 +02:00
Johan Hedberg
b8779d2202 Revert "Ensure config.h is included by using CPPFLAGS"
This reverts commit 8a03376544.

The patch needs to be split up and the gdbus/ changes were bogus
compared to the original commit message.

Conflicts:
	Makefile.am
	Makefile.obexd
	profiles/cyclingspeed/cyclingspeed.c
	profiles/heartrate/heartrate.c
	src/error.c
2012-12-07 12:46:04 +02:00
Andre Guedes
7ff3126564 adapter: Discoverable storage
This patch changes store_adapter_info helper so it stores Discoverable
value according to discov_timeout. If discov_timeout is greater than
zero, we store "false" for Discoverable. This change covers the case
when DiscoverableTimeout value is set when Discoverable is true.
2012-12-07 11:20:27 +02:00
Andre Guedes
e56e2ba844 adapter: Don't store Discoverable value if DiscoverableTimeout is set
If adapter was set to Discoverable and DiscoverableTimeout is greater
than zero we should not store the Discoverable adapter info as long as
it is a non-persistent state. This way, we don't need to worry about
updating the Discoverable stored value once the timeout expires.
2012-12-07 11:17:43 +02:00
Andre Guedes
2fe5e46290 adapter: Fix unplugging adapter bug
If we unplug an adapter in powered on state, once it is plugged
again, it doesn't go to powered on state as expected. This bug
happens because Powered info is stored when the adapter is
unplugged from the system.

This patch fixes this bug by only storing adapter info if mode
changing was requested by user application via D-Bus interface.
This patch basically reverts the changes in commit
985d8ac397 where the bug was
introduced.
2012-12-07 11:15:12 +02:00
Vinicius Costa Gomes
0e66694d8d build: Fix 'make distcheck'
The test script of the cycling speed profile should be
'test-cyclingspeed' instead of 'test-cycling'.
2012-12-07 09:56:15 +02:00
Frédéric Danis
f6655d0a88 test: Fix syntax in bluezutils.py
Traceback (most recent call last):
  File "./simple-agent", line 12, in <module>
    import bluezutils
  File "/home/fdanis/src/bluez/test/bluezutils.py", line 22
    if not pattern or pattern == adapter["Address"] or
                                                     ^
SyntaxError: invalid syntax
2012-12-06 22:25:59 +02:00
Mikel Astiz
419f00496c test: Fix test-device using wrong interface
The property getter and setter belong to org.freedesktop.DBus.Properties
and therefore fix this code using the wrong interface since commit
67dab2d2ae.
2012-12-06 17:41:39 +02:00
Anderson Lizardo
8f0d6c96c4 lib: Fix member type on le_read_advertising_channel_tx_power_rp
Transmit power level range is -20 <= N <= 10, thus it should be stored
as int8_t.
2012-12-06 12:24:04 +02:00
Vinicius Costa Gomes
375e766245 audio: Fix interface names
In some places, the old names of the interfaces were still being used.
So we update them to use the new names.
2012-12-06 12:23:25 +02:00
Mikel Astiz
93e378e2ec media: Fix some wrong interface names
Trivially fix some wrong interface names introduced by commit
3aa15b56dc.
2012-12-06 12:23:00 +02:00
Johan Hedberg
58c5aafcce TODO: Update to current status 2012-12-06 10:55:53 +02:00
Mikel Astiz
3aa15b56dc media: Add version suffix to all media interfaces
Append the version number to all D-Bus interface names in the Media API.
2012-12-05 19:24:47 +02:00
Mikel Astiz
2ff2181d1c media: Trivial style fix
No whitespace should exist before parenthesis close.
2012-12-05 19:24:31 +02:00
Mikel Astiz
35a6a98045 media: Add MediaTransport.TryAcquire()
Split the Acquire() method in two parts so that the optional acquires,
formerly represented as a "?" flag in the accesstype parameter of
Acquire(), are now implemented in TryAcquire().
2012-12-05 19:23:52 +02:00
Mikel Astiz
fb965c9293 media: Remove transport owner list
Transports now have zero or one owners, so there is no need to maintain
a list any more.
2012-12-05 19:23:36 +02:00
Mikel Astiz
5d6e8f2f2a media: Remove internal transport locks
The internal transport_lock_t is not needed any more since transports
are now always acquired with read and write permissions.
2012-12-05 19:23:21 +02:00
Mikel Astiz
6b97470f81 media: Remove transport access type from D-Bus API
There is no known use-case making use of these access types and
therefore the Media API can be simplified.

From now on, the transport will always be acquired with read and write
access rights.
2012-12-05 19:23:02 +02:00
Syam Sidhardhan
4810b2f4e3 l2test: Add support to test auto select PSM
This patch enable us to test the auto select PSM by passing
PSM value as 0.

Ex: l2test -d -P 0
l2test[2585]: Waiting for connection on psm 4099 ...
2012-12-05 19:20:17 +02:00
Frédéric Danis
703dd8b404 hciconfig: Remove putkey command
With new storage architecture legacy storage "linkkeys"
file doesn't exist anymore.
2012-12-05 17:24:38 +02:00
Lucas De Marchi
0375042892 Use entire include path for gobex.h 2012-12-05 17:23:04 +02:00
Lucas De Marchi
5714b14bce Reorder btio.h includes
Let "#include <btio/btio.h>" together with other includes using '<'
rather than '"'.
2012-12-05 17:23:04 +02:00
Lucas De Marchi
49b5612042 Use the entire include path for btio.h 2012-12-05 17:23:04 +02:00
Lucas De Marchi
aa77b0bea9 Use the entire include path for gdbus.h 2012-12-05 17:23:03 +02:00
Lucas De Marchi
c61a78c877 build-sys: Add missing force arg to symlink creation
If we don't force the symlink creation the build fails when the link
already exists. This happens if the rule to create the link is triggered
again because the file it points to changed. This is the case when doing
incremental builds and we modified the file.

$ make
$ touch lib/cmtp.h
$ make
  GEN      lib/bluetooth/cmtp.h
ln: failed to create symbolic link ‘lib/bluetooth/cmtp.h’: File exists
make: *** [lib/bluetooth/cmtp.h] Error 1
make: *** Waiting for unfinished jobs....
2012-12-05 17:23:03 +02:00
Johan Hedberg
05bad2b9f7 test: Fix re-declaration of "encrypt" symbol
test/l2test.c:106:12: error: ‘encrypt’ redeclared as different kind of symbol
In file included from test/l2test.c:30:0:
/usr/include/unistd.h:1147:13: note: previous declaration of ‘encrypt’ was here
2012-12-05 17:21:54 +02:00
Lucas De Marchi
8a03376544 Ensure config.h is included by using CPPFLAGS
Instead of trying to include config.h in each file over the tree and
possibly forgetting to include it, give a "-include config.h" argument
to the compiler so it's guaranteed that a) it will be included for all
source files and b) it will be the first header included.

gdbus/ directory is left out, since it would break other projects using
it.
2012-12-05 17:18:07 +02:00
Lucas De Marchi
b84f6f794b build-sys: Define _GNU_SOURCE in config.h
Instead of defining _GNU_SOURCE in each source file (and potentially
forgetting in some), tell the build system we use extensions and let it
define _GNU_SOURCE in config.h.
2012-12-05 17:17:36 +02:00