OSDN Git Service
Marcel Holtmann [Sun, 23 Dec 2012 18:16:41 +0000 (10:16 -0800)]
core: Move __terminated into signal handler
Marcel Holtmann [Sun, 23 Dec 2012 16:04:03 +0000 (08:04 -0800)]
hcidump: Remove TCP/IP connection handling
The hcidump utility is not useful as a logging daemon. So just disable the
server feature.
Marcel Holtmann [Sun, 23 Dec 2012 15:48:31 +0000 (07:48 -0800)]
core: Product and version info with 0x0000 are actually valid
Only a Vendor with 0x0000 is invalid and so check for a valid vendor
to decide to return product and version properties or not.
Anderson Lizardo [Sat, 22 Dec 2012 22:59:21 +0000 (18:59 -0400)]
core: Fix memory leak from pending UUID removal
When bluetoothd is shutting down, profile cleanup will usually issue
many "Remove UUID" management commands. These may not complete before
the process exits, resulting on this memory leak:
==2461== 144 (8 direct, 136 indirect) bytes in 1 blocks are definitely
lost in loss record 153 of 176
==2461== at 0x402BE68: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==2461== by 0x40869AA: standard_malloc (gmem.c:85)
==2461== by 0x4086E42: g_malloc (gmem.c:159)
==2461== by 0x409B26D: g_slice_alloc (gslice.c:1003)
==2461== by 0x409C659: g_slist_append (gslist.c:222)
==2461== by 0x80B5E12: mgmt_remove_uuid (mgmt.c:1034)
==2461== by 0x80A734E: adapter_service_remove (adapter.c:708)
==2461== by 0x80994B4: sdp_record_remove (sdpd-database.c:272)
==2461== by 0x8098CC0: remove_record_from_server (sdpd-service.c:290)
==2461== by 0x8062B5B: avrcp_unregister (avrcp.c:2354)
==2461== by 0x409C797: g_slist_foreach (gslist.c:840)
==2461== by 0x80A7D77: adapter_remove (adapter.c:1630)
The leak seems to only happen during bluetoothd shutdown, because the
list of pending UUIDs is cleared when controller is removed. Therefore,
only cleanup the list on shutdown path.
Marcel Holtmann [Sun, 23 Dec 2012 06:43:38 +0000 (22:43 -0800)]
core: Do not include SDP server UUIDs in adapter list
Any service that is not part of the public browse group should not
be exported within the adapter's UUID list.
Marcel Holtmann [Sun, 23 Dec 2012 04:13:46 +0000 (20:13 -0800)]
client: Add support for setting a device trusted
Marcel Holtmann [Sun, 23 Dec 2012 03:43:14 +0000 (19:43 -0800)]
lib: Update company identifiers
Marcel Holtmann [Sun, 23 Dec 2012 03:11:46 +0000 (19:11 -0800)]
client: Print UUIDs as human readable strings as well
Marcel Holtmann [Sun, 23 Dec 2012 03:10:42 +0000 (19:10 -0800)]
monitor: Add support for converting UUID-128 string
Marcel Holtmann [Sun, 23 Dec 2012 01:29:10 +0000 (17:29 -0800)]
build: Fix Tedd's name matching to email address
Luiz Augusto von Dentz [Sat, 22 Dec 2012 19:05:04 +0000 (21:05 +0200)]
audio: Disable MediaPlayer1 interface for now
The interface may be redesigned so for now it is intentionally
disabled for both CT and TG roles.
Marcel Holtmann [Sat, 22 Dec 2012 20:36:41 +0000 (12:36 -0800)]
input: Prefer unlink() over remove() when opening FIFO fails
Johan Hedberg [Sat, 22 Dec 2012 20:32:13 +0000 (22:32 +0200)]
input: Prefer unlink() over remove() when removing FIFO
Johan Hedberg [Sat, 22 Dec 2012 20:31:20 +0000 (22:31 +0200)]
input: Avoid (risky) recursive calls to suspend_init
Marcel Holtmann [Sat, 22 Dec 2012 20:05:59 +0000 (12:05 -0800)]
gdbus: Avoid using g_ptr_array_new_full convenience function
The g_ptr_array_new_full function only got introduced with GLib 2.30
and to avoid requiring a newer GLib use g_ptr_array_set_free_func instead.
Marcel Holtmann [Sat, 22 Dec 2012 17:59:22 +0000 (09:59 -0800)]
input: Don't create a FIFO with executable permission
Marcel Holtmann [Sat, 22 Dec 2012 17:48:48 +0000 (09:48 -0800)]
core: Return VendorSource as string and only allow supported values
Marcel Holtmann [Sat, 22 Dec 2012 17:48:30 +0000 (09:48 -0800)]
doc: Change VendorSource value into a string
Marcel Holtmann [Sat, 22 Dec 2012 17:47:55 +0000 (09:47 -0800)]
client: Add support for printing uint16 properties
Marcel Holtmann [Sat, 22 Dec 2012 17:45:39 +0000 (09:45 -0800)]
client: Add support for showing device information
Marcel Holtmann [Sat, 22 Dec 2012 17:17:31 +0000 (09:17 -0800)]
core: Limit SDP unix socket to owner and group access
Marcel Holtmann [Sat, 22 Dec 2012 17:15:44 +0000 (09:15 -0800)]
core: Create storage directories without group and world permissions
Marcel Holtmann [Sat, 22 Dec 2012 17:14:58 +0000 (09:14 -0800)]
profiles: Store information only accessible for the owner
Marcel Holtmann [Sat, 22 Dec 2012 17:14:31 +0000 (09:14 -0800)]
core: Store information only accessible for the owner
Marcel Holtmann [Sat, 22 Dec 2012 16:53:31 +0000 (08:53 -0800)]
core: Don't send property changed signal for non-existing property
Marcel Holtmann [Sat, 22 Dec 2012 16:52:32 +0000 (08:52 -0800)]
doc: Remove Connectable setting and do some visual cleanups
Johan Hedberg [Sat, 22 Dec 2012 16:49:16 +0000 (18:49 +0200)]
input: Prefer unlink() over remove()
Marcel Holtmann [Sat, 22 Dec 2012 16:47:00 +0000 (08:47 -0800)]
doc: Storage documentation is for developers and nobody else
João Paulo Rechi Vita [Sat, 22 Dec 2012 15:12:42 +0000 (12:12 -0300)]
hog: Remove pre-existing suspend FIFO
If bluetoothd crashes the exit routine of the suspend plugin will not be
executed, leaving the suspend FIFO behind and preventing the plugin load
on subsequent executions. This commit checks for pre-existence of the
suspend FIFO and tries to remove and re-create it.
João Paulo Rechi Vita [Sat, 22 Dec 2012 15:12:41 +0000 (12:12 -0300)]
hog: Fix error message formating
João Paulo Rechi Vita [Sat, 22 Dec 2012 15:12:40 +0000 (12:12 -0300)]
hog: Add debug info when initializing the suspend plugin
João Paulo Rechi Vita [Sat, 22 Dec 2012 15:12:39 +0000 (12:12 -0300)]
hog: Fix message text and level when failing to load suspend plugin
Johan Hedberg [Sat, 22 Dec 2012 16:30:05 +0000 (18:30 +0200)]
obexd: Update string enumeration values to lower case
Johan Hedberg [Sat, 22 Dec 2012 16:25:35 +0000 (18:25 +0200)]
doc: Convert more upper case enums to lower case in obex-api
Marcel Holtmann [Fri, 21 Dec 2012 20:15:31 +0000 (12:15 -0800)]
build: Add magic file for BTSnoop file format
Marcel Holtmann [Fri, 21 Dec 2012 19:42:35 +0000 (11:42 -0800)]
AUTHORS: Add missing entries from the hcidump merge
Marcel Holtmann [Fri, 21 Dec 2012 19:41:07 +0000 (11:41 -0800)]
AUTHORS: Add missing entries from the obexd merge
Anderson Lizardo [Fri, 21 Dec 2012 16:25:03 +0000 (12:25 -0400)]
build: Fix installing udev rules file when $(srcdir) != $(builddir)
Path to files on source tree should be prefixed with $(srcdir),
otherwise they are not found if $(srcdir) != $(builddir).
Anderson Lizardo [Fri, 21 Dec 2012 16:25:02 +0000 (12:25 -0400)]
obexd: Simplify org.bluez.Error.InvalidArguments handling
Use a helper function to void code duplication.
Anderson Lizardo [Fri, 21 Dec 2012 16:25:01 +0000 (12:25 -0400)]
sap: Use btd_error_* functions
These helper functions are available for plugins and simplify error
handling code.
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