| 9dd4f03f |
adapter: Remove unwanted if check and code
Here the variable agent never be NULL, so no need to check it
against NULL. |
Syam Sidhardhan |
13 years ago |
1 file, +0, -3 |
| 44e59c8d |
avctp: Fix NULL check after dereference
Check for session != NULL has to be done before accessing session. |
Syam Sidhardhan |
13 years ago |
1 file, +2, -1 |
| 89d2b63c |
Remove redundant D-Bus error initilization in maemo6 plugin |
Syam Sidhardhan |
13 years ago |
1 file, +0, -1 |
| 09801ee2 |
agent: Remove redundant D-Bus error initilizations |
Syam Sidhardhan |
13 years ago |
1 file, +0, -5 |
| e03ca075 |
media: Remove redundant D-Bus error initilization |
Syam Sidhardhan |
13 years ago |
1 file, +0, -1 |
| 0c954f40 |
storage: Use g_free() instead of free()
It is important to match g_*() memory allocation with g_free() |
Syam Sidhardhan |
13 years ago |
1 file, +3, -3 |
| b0abb13f |
monitor: Fix memory leak |
Syam Sidhardhan |
13 years ago |
1 file, +2, -1 |
| cbd2b134 |
sdp/build: Build fails when SDP_DEBUG enabled
Enabling SDP_DEBUG prevents build to be done. |
Arek Lichwa |
13 years ago |
2 files, +2, -3 |
| bebd71a3 |
core: Fix creating device from "primary" file
This patch removes the hard-coded address type for the BLE device
created from the storage. |
Claudio Takahasi |
13 years ago |
1 file, +7, -3 |
| a46398cb |
storage: Store BLE address type in "primary" file
BLE addressing types can be either public or random so the entries in
the "primary" file did not contain enough information to distinguish
which addressing type it's supposed to be (LE public or LE random).
Entries will now contain both BLE address number and BLE address type
as a single key in every entry in the file. |
Paulo Alcantara |
13 years ago |
3 files, +15, -11 |
| f40e859f |
core: Fix removing device services from "primary" file
The BLE address type needs to be passed as parameter in
delete_device_service() function in order to remove a device from
"primary" file. This is why the entries in "primary" file will be using
the new storage format. |
Paulo Alcantara |
13 years ago |
3 files, +18, -13 |
| df347cbb |
audio: Change the file mode back to 644 |
Marcel Holtmann |
13 years ago |
1 file, +0, -0 |
| 5c6bd559 |
gdbus: Fix incorrectly discarded signals
Signals with no arguments were incorrectly filtered out due to the NULL
inequality check. |
Mikel Astiz |
13 years ago |
1 file, +3, -7 |
| bb846fcc |
audio: Fix media transport creation for gateway endpoints
The device maybe connected to another adapter other than the endpoint's
so the adapters must be first check. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +3, -0 |
| 0d81fc7c |
audio: Fix media transport creation
Prevents set_configuration() to be called on another adapter
than connecting one |
Frédéric Danis |
13 years ago |
1 file, +3, -0 |
| 173cde1e |
avdtp: Fix incorrect gchar buffer allocation
The code was allocating an array of gchar pointers, where an array of
gchar is expected. |
Anderson Lizardo |
13 years ago |
1 file, +1, -1 |
| a25de3dc |
AVRCP: Refactor the code using constants |
Joohi Rastogi |
13 years ago |
1 file, +15, -2 |
| 839012fa |
AVRCP: Add missing Player Setting feature in TG record |
Joohi Rastogi |
13 years ago |
1 file, +5, -3 |
| 068ea1c8 |
sdp: Remove unnecessary memset()
The memory referenced by "u" pointer is initialized right after the
memset() call. |
Anderson Lizardo |
13 years ago |
1 file, +0, -1 |
| 32b4ad5a |
AVRCP: Bump TG record to 1.4
The only mandatory feature for 1.4 is absolute volume control which is
now supported. |
Luiz Augusto von Dentz |
13 years ago |
1 file, +1, -1 |
| a282fff9 |
AVRCP: Subscribe for VolumeChanged Notification
If the remote device support version 1.4 or latter send register command
for VolumeChanged event:
< AVCTP: Command : pt 0x00 transaction 0 pid 0x110e
AV/C: Notify: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: RegisterNotification: pt Single len 0x0005
EventID: 0x0d (EVENT_VOLUME_CHANGED)
Interval: 0x00000000 (0 seconds)
> AVCTP: Response : pt 0x00 transaction 0 pid 0x110e
AV/C: Interim: address 0x48 opcode 0x00
Subunit: Panel
Opcode: Vendor Dependent
Company ID: 0x001958
AVRCP: RegisterNotification: pt Single len 0x0002
EventID: 0x0d (EVENT_VOLUME_CHANGED)
Volume: 100.00% (127/127) |
Luiz Augusto von Dentz |
13 years ago |
7 files, +192, -10 |
| 54c412c3 |
AVRCP: Add define for VolumeChanged event |
Luiz Augusto von Dentz |
13 years ago |
1 file, +2, -1 |
| 2d4a0e42 |
sdp: Fix removing servers own record
To avoid misbehaving plugins trying to remove handle 0 it's better to
directly check for this and return EINVAL. |
Johan Hedberg |
13 years ago |
1 file, +4, -0 |
| aec64042 |
adapter: do not check signature twice
Message signature is already checked in generic_message(), so there's no
need to check again in the callback. |
Lucas De Marchi |
13 years ago |
1 file, +0, -3 |
| e6ebddb1 |
gdbus: add Method.NoReply annotation in introspection |
Lucas De Marchi |
13 years ago |
1 file, +6, -1 |
| 53e3faaf |
gdbus: add Deprecated annotation in introspection |
Lucas De Marchi |
13 years ago |
1 file, +17, -2 |
| e77a7c27 |
gdbus: remove signature and reply from tables |
Lucas De Marchi |
13 years ago |
2 files, +1, -52 |
| 7eebe7fb |
Do not set signature and reply in GDBus tables
Use GDBUS_* macros, so signature and reply fields are not set in each
method/signal. |
Lucas De Marchi |
13 years ago |
27 files, +175, -175 |
| 67da9a46 |
gdbus: do not check signature twice
Message signature is already checked in generic_message(), so there's no
need to check again in the callback. |
Lucas De Marchi |
13 years ago |
1 file, +0, -5 |
| fd9148dd |
gdbus: loop over args to check message signature |
Lucas De Marchi |
13 years ago |
1 file, +27, -7 |
| c430735f |
gdbus: use GDBusArgInfo to generate introspection
By using GDBusArgInfo in methods and signals, the introspection
generation is much simpler and we can add each argument name. |
Lucas De Marchi |
13 years ago |
1 file, +14, -61 |
| aa3b9016 |
Convert GDBus methods to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector. |
Lucas De Marchi |
13 years ago |
27 files, +435, -233 |
| 56f4b3c8 |
gdbus: add argument info to methods and signals |
Lucas De Marchi |
13 years ago |
1 file, +8, -0 |
| 25a42e67 |
Constify GDBus signal tables
Constify signal tables with the following command:
find . -name '*.[ch]' -exec \
sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \; |
Lucas De Marchi |
13 years ago |
19 files, +19, -19 |
| 665014ce |
Constify GDBus method tables
Constify method tables with the following command:
find . -name '*.[ch]' -exec \
sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \; |
Lucas De Marchi |
13 years ago |
27 files, +31, -31 |
| 2e576dd2 |
gdbus: add and use helpers for table declarations |
Lucas De Marchi |
13 years ago |
2 files, +88, -1 |
| b01bcc42 |
gdbus: Constify introspection method table |
Marcel Holtmann |
13 years ago |
1 file, +1, -1 |
| a40aa24e |
gdbus: do not call memset for terminating NUL |
Lucas De Marchi |
13 years ago |
1 file, +2, -1 |
| 417d4851 |
gdbus: return if method signature is malformed |
Lucas De Marchi |
13 years ago |
1 file, +4, -0 |
| 3481ed31 |
Add dbus service file that references the systemd unit
This allows bluez to be bus-activated. |
Alex Elsayed |
13 years ago |
3 files, +8, -0 |
| 982ee649 |
hciemu: Fix gcc 4.7 compilation error
This patch fixes the following compilation error with gcc 4.7:
CC test/hciemu.o
test/hciemu.c: In function 'getbdaddrbyname':
test/hciemu.c:1115:3: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] |
Johan Hedberg |
13 years ago |
1 file, +2, -1 |
| 5b7511dc |
doc: Update possible values of Agent capabilities |
Lucas De Marchi |
13 years ago |
1 file, +5, -4 |
| 63ed03ad |
adapter: Remove dead code from set_property() |
Anderson Lizardo |
13 years ago |
1 file, +0, -4 |
| afb0ab3a |
build: Do not set CFLAGS/LDFLAGS directly
Set a separate variable for adding warning flags, optimization, etc.
Build systems are not supposed to change CFLAGS and LDFLAGS, these are
user variables.
Doing so we guarantee CFLAGS and LDFLAGS from environment is appended
to the flags used during build. One useful use-case is to temporarily
disable -Werror when using --enable-maintainer-mode, without completely
loosing the warning flags and other parameters in CFLAGS (like -fPIC).
Without this patch, fiddling with CFLAGS/LDFLAGS after configure may
result in errors like below:
/usr/bin/ld: tools/rfcomm.o: relocation R_X86_64_32 against `.bss' can
not be used when making a shared object; recompile with -fPIC
tools/rfcomm.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [tools/rfcomm] Error 1
make: *** [all] Error 2
Reference: http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html |
Lucas De Marchi |
13 years ago |
2 files, +36, -24 |
| 99fe325a |
build: Fix typo in AM_CFLAGS |
Lucas De Marchi |
13 years ago |
1 file, +1, -1 |
| 96965948 |
textfile: fix missing call to munmap in wite_key
In some cases it was possible that munmap is not called corresponding
to mmap, which might result in future read or writes to fail. |
Vishal Agarwal |
13 years ago |
1 file, +1, -1 |
| 6e6e6af1 |
lib: Add definitions for AMP Assoc data
Definitions are needed for decoding A2MP Assoc Rsp. |
Andrei Emeltchenko |
13 years ago |
1 file, +38, -0 |
| 6f4d0b56 |
core: Remove unused variable
"srcaddr" variable is not used for anything else in
btd_event_remote_name() function. So, remove it for now. |
Paulo Alcantara |
13 years ago |
1 file, +0, -3 |
| 8d25f952 |
hciattach: Add support for Intel Bluetooth device
This patch enables the Intel Bluetooth device (UART sku) over the H4
protocol. It is responsible for bring up the device into known state by
configuring the baudrate and applying the patches, if required. |
Tedd Ho-Jeong An |
13 years ago |
5 files, +615, -1 |
| ef136177 |
eir: Keep parsed eir_data on error
Do not discard already parsed eir_data on eir data length error.
Data corruption may occur, but this does not mean that we need
to ignore already parsed valid eir data. |
Chen Ganir |
13 years ago |
1 file, +3, -5 |