summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Install several bluetooth test utilitiesbaserock/morphJannis Pohlmann2012-10-081-0/+7
|
* Add morphology to build/install test programs and toolsJannis Pohlmann2012-10-081-0/+10
|
* device: Fix missing iterator append call in dev_property_get_productJohan Hedberg2012-10-061-0/+3
|
* build: Indicate 5.x development branchMarcel Holtmann2012-10-061-1/+1
|
* core: Move functions to avoid forward declarationLucas De Marchi2012-10-061-96/+90
|
* core: Add setters and signals to Device interfaceLucas De Marchi2012-10-061-124/+133
|
* core: Add DBus.Properties getters for Device interfaceLucas De Marchi2012-10-061-88/+319
|
* doc: Mark optional properties in Device interfaceLucas De Marchi2012-10-061-7/+7
|
* core: Remove useless memset and make icon optionalLucas De Marchi2012-10-061-5/+3
| | | | | | | | name is not being really used anywhere, so remove it together with the memset from Device.GetProperties(). icon is optional, so check if it's not NULL before adding it to the list of device properties.
* gdbus: Fix up Properties.Set() code pathLucas De Marchi2012-10-061-3/+7
| | | | | | | | | | Minor fixes to make setter actually work: - Add propdata in pending_property_set - Break loop when we are removing propdata from list and we found it - in_args and out_args were swapped - interface and method name arguments were swapped
* gdbus: Fix invalid memory access while unregisteringLucas De Marchi2012-10-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | If an interface is added and removed on the same mailoop iteration, ObjectManager would try to send InterfacesAdded signal while running the idler because the interface was added to data->added list. This is easily reproduced by forcing an error path in a plugin registration, like on sap_server_register(), resulting in the following error: ==11795== Invalid read of size 4 ==11795== at 0x496F592: dbus_message_iter_append_basic (dbus-message.c:2598) ==11795== by 0x117B39: append_interface (object.c:554) ==11795== by 0x48955E7: g_slist_foreach (gslist.c:840) ==11795== by 0x11923B: process_changes (object.c:592) ==11795== by 0x11956D: generic_unregister (object.c:980) ==11795== by 0x4973BAC: _dbus_object_tree_unregister_and_unlock (dbus-object-tree.c:516) ==11795== by 0x4965240: dbus_connection_unregister_object_path (dbus-connection.c:5776) ==11795== by 0x1178A5: object_path_unref (object.c:1219) ==11795== by 0x118517: g_dbus_unregister_interface (object.c:1344) ==11795== by 0x19AF5B: sap_exit (sap.c:385) ==11795== by 0x13E9E2: sap_server_register (server.c:1428) ==11795== by 0x13C092: sap_server_probe (manager.c:44) With this patch we don't send the InterfacesAdded signal, removing it from data->added while unregistering.
* doc: Cycling Speed and Cadence profile (CSCP) APIAndrzej Kaczmarek2012-10-051-0/+118
|
* AUTHORS: Add missing peopleJohan Hedberg2012-10-051-0/+4
|
* device: Move auth_type_t definition to device.cSzymon Janc2012-10-052-8/+8
| | | | | Bonding is handled in device.c and auth_type_t is private device data not used outside of it.
* adapter: Don't use adapter_get_path to access adapter pathSzymon Janc2012-10-051-2/+1
| | | | Use struct btd_adapter directly to access path member.
* adapter: Don't use adapter_get_address to access adapter addressSzymon Janc2012-10-051-3/+3
| | | | Use struct btd_adapter directly to access bdaddr member.
* device: Don't use device_get_addr_type to access device address typeSzymon Janc2012-10-051-4/+1
| | | | Use struct btd_device directly to access bdaddr_type member.
* device: Don't use device_get_adapter to access device adapterSzymon Janc2012-10-051-20/+14
| | | | Use struct btd_device directly to access adapter member.
* device: Remove bogus line from device_create_bondingSzymon Janc2012-10-051-1/+0
| | | | This is a typo from 899e6561d284806007b7e57e1ab3b65e54be3d22.
* device: Make device_get_address return const pointerSzymon Janc2012-10-052-2/+2
|
* adapter: Constify use of bdaddr_t pointer parametersSzymon Janc2012-10-052-45/+58
| | | | Mark all input only bdaddr_t pointer parameters as const.
* mgmt: Constify use of bdaddr_t pointer parametersSzymon Janc2012-10-055-36/+38
| | | | Mark all input only bdaddr_t pointer parameters as const.
* device: Convert device_get_address into simple getterSzymon Janc2012-10-0514-140/+87
| | | | | | | | This allow to remove number of local variables used only to get device address and pass it as pointer later on. bdaddr_type parameter is also removed as there is device_get_addr_type already present which can be used to get it if needed.
* adapter: Constify pointer returned by adapter_get_addressSzymon Janc2012-10-0518-30/+40
|
* storage: Constify bdaddr_t pointers parametersSzymon Janc2012-10-052-87/+105
|
* adapter: Convert adapter_get_address into simple getterSzymon Janc2012-10-0523-277/+179
| | | | | | | | | | | Most uses of adapter_get_address were in form of: bdaddr_t addr; adapter_get_address(adapter, &addr); foo(&addr); Changing it to getter makes code simpler and avoid number of not needed memcpy.
* core: Fix walking the list while removing elementsLucas De Marchi2012-10-041-2/+3
| | | | | | If we are walking a GSList and remove the element we are pointing to, the next iteration g_slist_next() will access previously freed memory.
* core: Fix leaking connection list nodesLucas De Marchi2012-10-041-0/+2
| | | | | | | | | | | | | | | | | | | ==480== HEAP SUMMARY: ==480== in use at exit: 62,418 bytes in 355 blocks ==480== total heap usage: 11,134 allocs, 10,779 frees, 5,254,068 bytes allocated ==480== ==480== 16 bytes in 1 blocks are definitely lost in loss record 70 of 250 ==480== at 0x4C2C04B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==480== by 0x4E80050: g_malloc (in /usr/lib/libglib-2.0.so.0.3200.4) ==480== by 0x4E94442: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.3200.4) ==480== by 0x4E95792: g_slist_append (in /usr/lib/libglib-2.0.so.0.3200.4) ==480== by 0x17E483: adapter_add_connection (adapter.c:3245) ==480== by 0x187FDF: btd_event_conn_complete (event.c:470) ==480== by 0x18B72D: mgmt_event.part.36 (mgmt.c:515) ==480== by 0x4E7A474: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3200.4) ==480== by 0x4E7A7A7: ??? (in /usr/lib/libglib-2.0.so.0.3200.4) ==480== by 0x4E7ABA1: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.3200.4) ==480== by 0x1216B1: main (main.c:551)
* audio: Remove unused functionChan-yeol Park2012-10-042-41/+0
|
* mgmt: Add string for Passkey Notify EventChan-yeol Park2012-10-041-0/+1
|
* core: Use DBus.Properties on Manager interfaceLucas De Marchi2012-10-041-56/+25
|
* audio: Use DBus.Properties on Control interfaceLucas De Marchi2012-10-041-39/+18
|
* gdbus: Implement PropertiesChanged signalLucas De Marchi2012-10-042-2/+109
|
* gdbus: Simplify code for appending propertiesLuiz Augusto von Dentz2012-10-041-32/+2
| | | | This reuse append_properties for GetAll and GetManagedObjects
* gdbus: Integrates ObjectManager with Properties interfaceLuiz Augusto von Dentz2012-10-041-1/+27
| | | | This appends the properties and its values when using ObjectManager.
* gdbus: Only export ObjectManager interface on root pathLuiz Augusto von Dentz2012-10-041-2/+15
| | | | | ObjectManager should be exported only in the root path and list all the children paths.
* gdbus: Group interface changes to reduce the amount of signals emittedLuiz Augusto von Dentz2012-10-041-154/+208
| | | | | InterfacesAdded and InterfacesRemoved can group all the interfaces changes together in one message.
* gdbus: Add support for org.freedesktop.DBus.ObjectManager interfaceLuiz Augusto von Dentz2012-10-041-10/+237
| | | | | | | | | This implements initial support for ObjectManager, it automatically adds objects to its parents so no action is needed by daemons to get their objects managed by this interface. ObjectManager is part of D-Bus spec since revision 0.17: http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager
* gdbus: Add properties into Introspectable interfaceLucas De Marchi2012-10-041-0/+19
|
* gdbus: Implement DBus.Properties.Set methodLucas De Marchi2012-10-042-1/+157
| | | | | | Contrary to Get() and GetAll(), Set() is asynchronous so we pass an id to the setter so later it can declare the Set() as successful or otherwise.
* gdbus: Implement DBus.Properties.GetAll methodLucas De Marchi2012-10-041-1/+55
|
* gdbus: Implement DBus.Properties.Get methodLucas De Marchi2012-10-042-1/+69
|
* gdbus: Add skeleton of DBus.Properties interfaceLucas De Marchi2012-10-041-0/+46
| | | | | | | | | This interface is responsible for handling properties of all objects in a given path. Right now it only registers itself, doing nothing useful. A conversion to this new layout will be done by subsequent patches. org.freedesktop.org.DBus.Properties spec can be found at http://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-properties
* gdbus: Use macros to add annotationsLucas De Marchi2012-10-041-12/+28
| | | | Besides being more readable this way it avoids going over 80 chars.
* gdbus: Move typedefs upLucas De Marchi2012-10-041-18/+29
| | | | Move the typedefs up so they can be used by functions and callbacks.
* build-sys: Don't use deprecated INCLUDES variableLucas De Marchi2012-10-041-2/+2
| | | | Makefile.am:410: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
* build-sys: Don't use deprecated AM_PROG_MKDIR_PLucas De Marchi2012-10-041-1/+1
| | | | | | | | | | AM_PROG_MKDIR_P is deprecated since: configure.ac:23: warning: The 'AM_PROG_MKDIR_P' macro is deprecated, and will soon be removed. configure.ac:23: You should use the Autoconf-provided 'AC_PROG_MKDIR_P' macro instead, configure.ac:23: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files. We are already using $(MKDIR_P) so we just need to call the right macro.
* AVDTP: Remove hand-written function name from logLucas De Marchi2012-10-041-1/+1
|
* AVCTP: Remove hand-written function name from logLucas De Marchi2012-10-041-1/+1
| | | | | Besides being hand-written, it was wrong which leads to confusion with the AVDTP.
* core: Add GoepL2capPsm lookup for external OBEX profilesJohan Hedberg2012-10-041-0/+21
|