OSDN Git Service
Anderson Lizardo [Fri, 21 Dec 2012 16:25:00 +0000 (12:25 -0400)]
core: Use ERROR_INTERFACE instead of org.bluez.Error
Johan Hedberg [Fri, 21 Dec 2012 21:34:55 +0000 (23:34 +0200)]
doc: Use lower case string values for supported OBEX targets
Luiz Augusto von Dentz [Fri, 21 Dec 2012 21:16:33 +0000 (23:16 +0200)]
obexd: Fix crash while attempting to authorize transfer
Transfer need to be registered before it is authorized because
AuthorizePush takes the transfer path and the agent may try to access
the transfer properties to figure out its details.
Luiz Augusto von Dentz [Fri, 21 Dec 2012 21:15:30 +0000 (23:15 +0200)]
test: Make OBEX related scripts python 3 compatible
Luiz Augusto von Dentz [Fri, 21 Dec 2012 21:10:21 +0000 (23:10 +0200)]
test: Port simple-obex-agent to the new API
Johan Hedberg [Fri, 21 Dec 2012 20:20:10 +0000 (22:20 +0200)]
obexd: Update Authorize call to AuthorizePush API
Johan Hedberg [Fri, 21 Dec 2012 20:00:24 +0000 (22:00 +0200)]
obexd: Implement Session transfer property
Johan Hedberg [Fri, 21 Dec 2012 20:00:01 +0000 (22:00 +0200)]
obexd: Fix session path generation in manager_unregister_session
Johan Hedberg [Fri, 21 Dec 2012 19:53:14 +0000 (21:53 +0200)]
obexd: Implement Time transfer property
Johan Hedberg [Fri, 21 Dec 2012 19:52:40 +0000 (21:52 +0200)]
doc: Use uint64 instead of uint32 for Time property in obex-api
Johan Hedberg [Fri, 21 Dec 2012 19:42:41 +0000 (21:42 +0200)]
obexd: Implement Type transfer property
Marcel Holtmann [Fri, 21 Dec 2012 18:05:33 +0000 (19:05 +0100)]
test: Handle IO exceptions from PBAP client
Marcel Holtmann [Fri, 21 Dec 2012 17:56:50 +0000 (18:56 +0100)]
obexd: Add a few more debug statements
Marcel Holtmann [Fri, 21 Dec 2012 17:44:24 +0000 (18:44 +0100)]
doc: Remove more copyright statements from API specifications
Marcel Holtmann [Fri, 21 Dec 2012 17:41:34 +0000 (18:41 +0100)]
doc: Update OBEX push agent callback parameters
Marcel Holtmann [Fri, 21 Dec 2012 17:38:24 +0000 (18:38 +0100)]
doc: Update OBEX transfer object with missing properties
Marcel Holtmann [Fri, 21 Dec 2012 17:15:42 +0000 (18:15 +0100)]
doc: Add Release callback to OBEX agent API
Marcel Holtmann [Fri, 21 Dec 2012 17:08:26 +0000 (18:08 +0100)]
doc: It should be org.bluez.obex.Error.Failed and not org.bluez.obex.Failed
Marcel Holtmann [Fri, 21 Dec 2012 17:06:25 +0000 (18:06 +0100)]
doc: Use org.bluez.obex.MessageAccess1 and org.bluez.obex.Message1
Marcel Holtmann [Fri, 21 Dec 2012 17:05:39 +0000 (18:05 +0100)]
doc: Cleanup of OBEX API specifications
Marcel Holtmann [Fri, 21 Dec 2012 16:59:04 +0000 (17:59 +0100)]
build: Include obex-api.txt and obex-agent-api.txt into package
Marcel Holtmann [Fri, 21 Dec 2012 16:57:45 +0000 (17:57 +0100)]
doc: Rename obexd-api.txt into just obex-api.txt
Marcel Holtmann [Fri, 21 Dec 2012 16:55:39 +0000 (17:55 +0100)]
obexd: There is only one daemon
Luiz Augusto von Dentz [Fri, 21 Dec 2012 15:23:22 +0000 (17:23 +0200)]
core: Fix being able to register the same custom property multiple times
btd_profile_add_custom_prop should check if the a property with the same
name already exists, in addition to that btd_profile_add_custom_prop now
returns a boolean indicating the success or failure of the operation.
Luiz Augusto von Dentz [Fri, 21 Dec 2012 15:14:21 +0000 (17:14 +0200)]
core: Fix btd_profile_remove_custom_prop crash
In addition add a boolean return to indicate sucess/failure of the
operation.
Luiz Augusto von Dentz [Fri, 21 Dec 2012 15:01:55 +0000 (17:01 +0200)]
media: Remove custom property when last endpoint is removed
When the last endpoint for a given UUID is removed the code should also
remove the custom property.
Luiz Augusto von Dentz [Fri, 21 Dec 2012 14:56:00 +0000 (16:56 +0200)]
core: Add btd_profile_remove_custom_prop function
btd_profile_remove_custom_prop should be used when the user_data passed
to btd_profile_add_custom_prop is invalidated/destroyed.
Luiz Augusto von Dentz [Fri, 21 Dec 2012 14:12:44 +0000 (16:12 +0200)]
obexd: Add Session property to Transfer interface
This property indicates the session object path.
Luiz Augusto von Dentz [Fri, 21 Dec 2012 13:56:12 +0000 (15:56 +0200)]
obexd: Remove unused code
obc_transfer_append_dbus_properties as the code now uses
g_dbus_get_properties to append transfer properties.
Johan Hedberg [Fri, 21 Dec 2012 14:27:09 +0000 (16:27 +0200)]
TODO: Remove BlueZ 5 section as all items are already completed
Szymon Janc [Fri, 21 Dec 2012 13:13:05 +0000 (14:13 +0100)]
adapter: Fix setting discoverable mode from settings
Discoverable mode was not set to correct value read from settings.
Luiz Augusto von Dentz [Fri, 21 Dec 2012 12:36:49 +0000 (14:36 +0200)]
obexd-api: Fix use gboolean intead of boolean
Luiz Augusto von Dentz [Fri, 21 Dec 2012 12:35:37 +0000 (14:35 +0200)]
obexd-api: Add possible errors
Add missing errors to method calls
Luiz Augusto von Dentz [Fri, 21 Dec 2012 11:06:55 +0000 (13:06 +0200)]
obexd: Rename Progress property to Transferred
Luiz Augusto von Dentz [Fri, 21 Dec 2012 10:47:06 +0000 (12:47 +0200)]
obexd: Use term active instead of in-progress for transfer status
Luiz Augusto von Dentz [Fri, 21 Dec 2012 09:31:28 +0000 (11:31 +0200)]
test: Update map-client to use the new interfaces
Luiz Augusto von Dentz [Fri, 21 Dec 2012 09:20:46 +0000 (11:20 +0200)]
test: Update pbap-client to use the new interfaces
Luiz Augusto von Dentz [Fri, 21 Dec 2012 09:08:53 +0000 (11:08 +0200)]
test: Update ftp-client to use the new interfaces
Luiz Augusto von Dentz [Fri, 21 Dec 2012 08:55:12 +0000 (10:55 +0200)]
test: Update opp-client to use the new interfaces
Luiz Augusto von Dentz [Thu, 20 Dec 2012 19:16:16 +0000 (21:16 +0200)]
obex-client: Rename org.bluez.obex.Transfer to Transfer1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon, in addition remove obex-client-api.txt and align with
Transfer1 API in use by the server.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 18:40:42 +0000 (20:40 +0200)]
obex-client: Rename org.bluez.obex.MessageAccess to MessageAccess1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon, in addition do the same to org.bluez.obex.Message.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 18:38:16 +0000 (20:38 +0200)]
obex-client: Rename org.bluez.obex.Synchronization to Synchronization1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 18:34:27 +0000 (20:34 +0200)]
obex-client: Rename org.bluez.obex.PhonebookAccess to PhonebookAccess1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 18:31:05 +0000 (20:31 +0200)]
obex-client: Rename org.bluez.obex.FileTransfer to org.bluez.obex.FileTransfer1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 18:16:14 +0000 (20:16 +0200)]
obex-client: Rename org.bluez.obex.ObjectPush to org.bluez.obex.ObjectPush1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 18:12:35 +0000 (20:12 +0200)]
obex-client: Rename org.bluez.obex.Session to org.bluez.obex.Session1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 18:01:10 +0000 (20:01 +0200)]
obexd: Rename org.bluez.obex.Client to org.bluez.obex.Client1
Rename the interface and move it to obexd-api.txt since it now belongs
to the same daemon.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 17:54:50 +0000 (19:54 +0200)]
obexd: Define base path so in future it is easier to change it
Luiz Augusto von Dentz [Thu, 20 Dec 2012 17:35:05 +0000 (19:35 +0200)]
obexd: Align client and server spec of org.bluez.obex.Transfer1
Luiz Augusto von Dentz [Thu, 20 Dec 2012 15:35:57 +0000 (17:35 +0200)]
obexd: Remove TransferStarted and TransferCompleted signals
This now handled by ObjectManager together with a new property called
Status.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 14:47:49 +0000 (16:47 +0200)]
obexd: Fix transfer path to include session path
Transfer path should use the session path as prefix
Luiz Augusto von Dentz [Thu, 20 Dec 2012 14:13:36 +0000 (16:13 +0200)]
test: Update simple-obex-agent to use the new interface names
Luiz Augusto von Dentz [Thu, 20 Dec 2012 14:09:52 +0000 (16:09 +0200)]
obexd: Fix session path to include manager path
Manager path is /org/bluez/obex so use it as prefix in the session path.
Luiz Augusto von Dentz [Thu, 20 Dec 2012 13:27:05 +0000 (15:27 +0200)]
obexd: Rename org.bluez.obex.Session to org.bluez.obex.Session1
Luiz Augusto von Dentz [Thu, 20 Dec 2012 13:25:14 +0000 (15:25 +0200)]
obexd: Rename org.bluez.obex.Transfer to org.bluez.obex.Transfer1
Luiz Augusto von Dentz [Thu, 20 Dec 2012 13:10:24 +0000 (15:10 +0200)]
obexd: Rename org.bluez.obex.Agent to org.bluez.obex.Agent1
Luiz Augusto von Dentz [Thu, 20 Dec 2012 12:55:45 +0000 (14:55 +0200)]
obexd: Rename Manager to AgentManager1
Johan Hedberg [Fri, 21 Dec 2012 09:49:57 +0000 (11:49 +0200)]
core: Fix sending set_discoverable if adapter is not connectable
Marcel Holtmann [Fri, 21 Dec 2012 08:46:16 +0000 (09:46 +0100)]
build: Mark Health plugin as experimental for now
The API of the Health plugin and the code itself needs another review
phase in the light for BlueZ 5.x. For now mark this plugin as experimental.
Marcel Holtmann [Fri, 21 Dec 2012 08:41:43 +0000 (09:41 +0100)]
build: Split documentation files into multiple separate lists
Marcel Holtmann [Fri, 21 Dec 2012 08:38:43 +0000 (09:38 +0100)]
doc: Remove outdated audio-telephony-design.txt for now
Since the document has large portions that are outdated, remove it
for now. It should be brought back with updated information later on.
Johan Hedberg [Fri, 21 Dec 2012 08:30:44 +0000 (10:30 +0200)]
test: Make it possible to call test-network with a "connect" parameter
Johan Hedberg [Fri, 21 Dec 2012 08:10:53 +0000 (10:10 +0200)]
test: Fix test-network logging after a successful connection
Johan Hedberg [Fri, 21 Dec 2012 07:50:12 +0000 (09:50 +0200)]
network: Add debug logs to better follow the connection procedure
Johan Hedberg [Fri, 21 Dec 2012 07:58:52 +0000 (09:58 +0200)]
network: Fix bnep_send_conn_req error checking
Johan Hedberg [Fri, 21 Dec 2012 07:54:53 +0000 (09:54 +0200)]
network: Remove unnecessary function cast
Johan Hedberg [Fri, 21 Dec 2012 07:52:54 +0000 (09:52 +0200)]
network: Fix passing correct btd_profile to device_profile_connected
Johan Hedberg [Fri, 21 Dec 2012 07:25:03 +0000 (09:25 +0200)]
Revert "build: Remove test-network"
This reverts commit
9efcb970ce023f9bedbe8160be0226fd14367878.
Conflicts:
Makefile.tools
Johan Hedberg [Thu, 20 Dec 2012 23:53:30 +0000 (01:53 +0200)]
network: Remove pointless pointer assignment at end of function
Johan Hedberg [Thu, 20 Dec 2012 23:21:32 +0000 (01:21 +0200)]
Revert "network: Remove Network.Connect and Network.Disconnect"
This reverts commit
9c62de94e5044038bcaae6cd6c0ec783fbee607a.
For convenience (mainly for ConnMan) bring back
Network1.Connect/Disconnect since they also give the interface name
directly.
Johan Hedberg [Thu, 20 Dec 2012 22:18:18 +0000 (00:18 +0200)]
health: Use lower-case strings for enum values (for consistency)
Johan Hedberg [Thu, 20 Dec 2012 09:01:30 +0000 (11:01 +0200)]
core: Fix display_pincode_cb behavior
The data pointer should be the authentication request and not the
device. Also, the pincode_cb function already checks for
auth->agent == NULL and will also do the agent_unref call if necessary.
Johan Hedberg [Thu, 20 Dec 2012 09:01:23 +0000 (11:01 +0200)]
doc: Remove incorrect fallback behavior claim for DisplayPinCode
Marcel Holtmann [Thu, 20 Dec 2012 02:43:38 +0000 (03:43 +0100)]
client: Add support for requesting default agent
Marcel Holtmann [Thu, 20 Dec 2012 02:36:13 +0000 (03:36 +0100)]
client: Add support for handling service authorizations
Marcel Holtmann [Thu, 20 Dec 2012 02:27:44 +0000 (03:27 +0100)]
test: Remove no longer test-service script
Marcel Holtmann [Thu, 20 Dec 2012 02:22:11 +0000 (03:22 +0100)]
client: Mover name command to the proper location
Marcel Holtmann [Thu, 20 Dec 2012 02:20:27 +0000 (03:20 +0100)]
client: Add command to display version
Marcel Holtmann [Thu, 20 Dec 2012 02:18:05 +0000 (03:18 +0100)]
client: Add support for connecting/disconnecting devices
Marcel Holtmann [Thu, 20 Dec 2012 02:00:41 +0000 (03:00 +0100)]
monitor: Decode QoS setup command and event
Marcel Holtmann [Thu, 20 Dec 2012 01:44:20 +0000 (02:44 +0100)]
monitor: L2CAP information respones don't have a payload
Marcel Holtmann [Thu, 20 Dec 2012 01:38:22 +0000 (02:38 +0100)]
monitor: Print legacy PIN code in ASCII and not hex
Frédéric Danis [Wed, 19 Dec 2012 13:20:01 +0000 (14:20 +0100)]
monitor: Fix crash in btmon
When retrieving SDP records from keyboard btmon crashes (see below).
The tid_list in sdp.c is filled up by SDP Service search request,
as Service Search responses are treated as invalid and do not free
tid_list entries.
This is due to passing last fragment instead of complete frame to
l2cap_frame().
< ACL Data TX: Handle 11 flags 0x00 dlen 26 [hci0] 24.082133
Channel: 511 len 22 [PSM 1 mode 0] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 14 len 17
Search pattern: [len 5]
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
L2CAP (0x0100)
Max record count: 65535
Attribute list: [len 7]
Sequence (6) with 5 bytes [8 extra bits] len 7
Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
0x0000ffff
Continuation state: 2
00 1d ..
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 24.085458
Num handles: 1
Handle: 11
Count: 2
> ACL Data RX: Handle 11 flags 0x02 dlen 27 [hci0] 24.102205
> ACL Data RX: Handle 11 flags 0x01 dlen 14 [hci0] 24.103339
Channel: 64 len 37 [PSM 1 mode 0] {chan 0}
invalid frame size
23 03 09 02 04 28 01 09 02 05 09 00 02 00 09 04 #....(..........
6d 09 02 02 09 b3 01 09 02 03 09 64 00 00 00 00 m..........d....
00 00 00 00 00 .....
< ACL Data TX: Handle 11 flags 0x00 dlen 24 [hci0] 24.170595
Channel: 511 len 20 [PSM 1 mode 0] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 15 len 15
Search pattern: [len 5]
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
PnP Information (0x1200)
Max record count: 65535
Attribute list: [len 7]
Sequence (6) with 5 bytes [8 extra bits] len 7
Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
0x0000ffff
Continuation state: 0
> ACL Data RX: Handle 11 flags 0x02 dlen 27 [hci0] 24.192217
> ACL Data RX: Handle 11 flags 0x01 dlen 25 [hci0] 24.193327
Channel: 64 len 48 [PSM 1 mode 0] {chan 0}
invalid frame size
01 35 03 19 12 00 09 00 04 35 0d 35 06 19 01 00 .5.......5.5....
09 00 01 35 03 19 02 00 32 09 00 64 00 00 00 00 ...5....2..d....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
< ACL Data TX: Handle 11 flags 0x00 dlen 26 [hci0] 24.205765
Channel: 511 len 22 [PSM 1 mode 0] {chan 0}
SDP: Service Search Attribute Request (0x06) tid 16 len 17
Search pattern: [len 5]
Sequence (6) with 3 bytes [8 extra bits] len 5
UUID (3) with 2 bytes [0 extra bits] len 3
PnP Information (0x1200)
Max record count: 65535
Attribute list: [len 7]
Sequence (6) with 5 bytes [8 extra bits] len 7
Unsigned Integer (1) with 4 bytes [0 extra bits] len 5
0x0000ffff
Program received signal SIGSEGV, Segmentation fault.
__memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2184
2184 ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: No such file or directory.
(gdb) bt
#0 __memcpy_ssse3_back () at ../sysdeps/x86_64/multiarch/memcpy-ssse3-back.S:2184
#1 0x0000000000418607 in search_attr_req (frame=0x7fffffffdff0, tid=0x0) at /usr/include/x86_64-linux-gnu/bits/string3.h:52
#2 0x0000000000418ebb in sdp_packet (frame=0x7fffffffe0e0, channel=0) at monitor/sdp.c:743
#3 0x000000000041547e in l2cap_frame (index=<optimised out>, in=<optimised out>, handle=<optimised out>, cid=<optimised out>, data=0x6370d0, size=22) at monitor/l2cap.c:2161
#4 0x000000000040f8c4 in packet_hci_acldata (tv=0x7fffffffe330, index=0, in=false, data=0x6370cc, size=26) at monitor/packet.c:4812
#5 0x000000000040fd35 in packet_monitor (tv=0x7fffffffe330, index=0, opcode=<optimised out>, data=0x6370c8, size=<optimised out>) at monitor/packet.c:1839
#6 0x0000000000403da2 in data_callback (user_data=0x6370c0, fd=<optimised out>, events=<optimised out>) at monitor/control.c:599
#7 data_callback (fd=<optimised out>, events=<optimised out>, user_data=0x6370c0) at monitor/control.c:541
#8 0x00000000004021c4 in mainloop_run () at monitor/mainloop.c:142
#9 0x0000000000401c7c in main (argc=1, argv=0x7fffffffe5f8) at monitor/main.c:154
Marcel Holtmann [Wed, 19 Dec 2012 23:18:30 +0000 (00:18 +0100)]
build: Remove support for external OOB plugin
Marcel Holtmann [Wed, 19 Dec 2012 23:17:21 +0000 (00:17 +0100)]
build: Remove doc/control-api.txt from package
Marcel Holtmann [Wed, 19 Dec 2012 23:14:45 +0000 (00:14 +0100)]
audio: Change to org.bluez.MediaControl1 as interface name
Marcel Holtmann [Wed, 19 Dec 2012 23:14:19 +0000 (00:14 +0100)]
doc: Merge org.bluez.Control1 into org.bluez.MediaControl1 API
Johan Hedberg [Wed, 19 Dec 2012 22:34:38 +0000 (00:34 +0200)]
test: Remove non-exitent items from test-device help text
Johan Hedberg [Wed, 19 Dec 2012 22:13:24 +0000 (00:13 +0200)]
doc: Mark HFP-specific MediaTransport properties clearly
Johan Hedberg [Wed, 19 Dec 2012 22:10:45 +0000 (00:10 +0200)]
test: Remove non-existent features from test-device
Johan Hedberg [Wed, 19 Dec 2012 22:04:11 +0000 (00:04 +0200)]
doc: Remove non-existent Services Device property
Johan Hedberg [Wed, 19 Dec 2012 22:02:57 +0000 (00:02 +0200)]
doc: Add missing error returns to Device1.CancelPairing
Andre Guedes [Wed, 19 Dec 2012 13:42:06 +0000 (10:42 -0300)]
hog: Rename hog_device_unregister
This patch renames hog_device_unregister function to hog_unregister_
device.
Andre Guedes [Tue, 18 Dec 2012 18:49:49 +0000 (15:49 -0300)]
hog: Rename hog_device_register
This patch renames hog_device_register function to hog_register_device.
Andre Guedes [Tue, 18 Dec 2012 18:49:48 +0000 (15:49 -0300)]
hog: Rename hog_device_free
This patch renames hog_device_free function to hog_free_device.
Andre Guedes [Tue, 18 Dec 2012 18:49:47 +0000 (15:49 -0300)]
hog: Rename hog_device_new
This patch renames hog_device_new function to hog_new_device.
Andre Guedes [Tue, 18 Dec 2012 18:49:46 +0000 (15:49 -0300)]
hog: Rename hog_device_set_control_point
This patch renames hog_device_set_control_point function to
set_control_point.
Andre Guedes [Tue, 18 Dec 2012 18:49:45 +0000 (15:49 -0300)]
hog: Rename hog_device_remove
This patch renames hog_device_remove function to hog_remove.
Andre Guedes [Tue, 18 Dec 2012 18:49:44 +0000 (15:49 -0300)]
hog: Rename hog_device_probe
This patch renames hog_device_probe function to hog_probe.
Andre Guedes [Tue, 18 Dec 2012 18:49:43 +0000 (15:49 -0300)]
hog: Rename hog_device.c file to hog.c
Since hog_manager.c and hog_device.h were merged into hog_device.c,
now the whole HoG logic is in this file. So, calling this file hog.c
instead of hog_device.c is more suitable.