summaryrefslogtreecommitdiff
path: root/src/dbus-common.c
Commit message (Collapse)AuthorAgeFilesLines
* Use accurate icons for headphones and headsetsThomas Weißschuh2021-10-111-2/+2
| | | | | | | | While these icon names are not part of the spec standard names [0] they are in practice implemented by at least Adwaita, Gnome, Oxygen, Arc and Breeze themes. [0] https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html
* src: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-14/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- LGPL-2.1-or-later : 62 GPL-2.0-or-later : 51 BSD-2-Clause : 2 License: LGPL-2.1-or-later src/adv_monitor.c src/adv_monitor.h src/shared/mainloop-glib.c src/shared/btp.c src/shared/tester.c src/shared/btsnoop.c src/shared/gatt-helpers.h src/shared/log.h src/shared/util.h src/shared/mainloop-ell.c src/shared/hci-crypto.c src/shared/mainloop.c src/shared/hfp.h src/shared/mainloop-notify.c src/shared/io-mainloop.c src/shared/btsnoop.h src/shared/uhid.h src/shared/util.c src/shared/ringbuf.c src/shared/btp.h src/shared/shell.h src/shared/io-glib.c src/shared/queue.h src/shared/gatt-server.h src/shared/crypto.c src/shared/crypto.h src/shared/io-ell.c src/shared/timeout-glib.c src/shared/mgmt.c src/shared/gatt-db.c src/shared/mainloop-notify.h src/shared/hfp.c src/shared/timeout-ell.c src/shared/shell.c src/shared/hci.c src/shared/log.c src/shared/ringbuf.h src/shared/gatt-helpers.c src/shared/queue.c src/shared/tty.h src/shared/timeout-mainloop.c src/shared/tester.h src/shared/gap.h src/shared/mgmt.h src/shared/gatt-db.h src/shared/uhid.c src/shared/mainloop.h src/shared/timeout.h src/shared/att-types.h src/shared/pcap.c src/shared/gap.c src/shared/att.c src/shared/pcap.h src/shared/hci.h src/shared/gatt-client.h src/shared/io.h src/shared/gatt-client.c src/shared/ad.c src/shared/att.h src/shared/gatt-server.c src/shared/hci-crypto.h src/shared/ad.h License: GPL-2.0-or-later src/attrib-server.h src/advertising.h src/textfile.c src/attrib-server.c src/uinput.h src/log.h src/eir.h src/sdpd.h src/sdpd-request.c src/service.h src/sdpd-database.c src/adapter.h src/plugin.h src/uuid-helper.h src/plugin.c src/main.c src/sdp-xml.c src/error.h src/oui.c src/device.c src/agent.h src/sdp-client.c src/oui.h src/device.h src/gatt-database.c src/error.c src/backtrace.c src/sdpd-server.c src/adapter.c src/log.c src/agent.c src/backtrace.h src/sdp-xml.h src/hcid.h src/dbus-common.h src/uuid-helper.c src/storage.c src/profile.c src/advertising.c src/storage.h src/dbus-common.c src/profile.h src/sdpd-service.c src/eir.c src/sdp-client.h src/gatt-database.h src/gatt-client.h src/rfkill.c src/gatt-client.c src/service.c src/textfile.h License: BSD-2-Clause src/shared/ecc.h src/shared/ecc.c
* dbus-common: Remove unused functionsERAMOTO Masaya2018-03-011-83/+2
|
* core/dbus-common: Add dict helpers for basic keysLuiz Augusto von Dentz2015-04-171-6/+21
| | | | | | | | | | | The specification allows any basic type to be key: 'A DICT_ENTRY works exactly like a struct, but rather than parentheses it uses curly braces, and it has more restrictions. The restrictions are: it occurs only as an array element type; it has exactly two single complete types inside the curly braces; the first single complete type (the "key") must be a basic type rather than a container type...'
* core: Fix includes for gdbus.h headerMarcel Holtmann2015-03-011-1/+2
|
* core: Remove unused emit_array_property_changed functionLucas De Marchi2012-12-161-25/+0
|
* core: Remove unused emit_property_changed functionJohan Hedberg2012-12-141-25/+0
|
* Revert "Ensure config.h is included by using CPPFLAGS"Johan Hedberg2012-12-071-0/+4
| | | | | | | | | | | | | | This reverts commit 8a03376544b046a84301847d1594f6c3674983ff. 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
* Use the entire include path for gdbus.hLucas De Marchi2012-12-051-1/+1
|
* Ensure config.h is included by using CPPFLAGSLucas De Marchi2012-12-051-4/+0
| | | | | | | | | | 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.
* dbus-common: Remove conn parameter from emit_array_property_changedAndrzej Kaczmarek2012-09-211-3/+2
| | | | | DBusConnection pointer is already stored in connection static variable so it's redundant to pass it as function parameter.
* dbus-common: Remove conn parameter from emit_property_changedAndrzej Kaczmarek2012-09-211-3/+2
| | | | | Valid DBusConnection pointer is available static variable 'connection' so it's it's redundant to pass it as function parameter.
* Rename get_dbus_connection to btd_get_dbus_connectionAndrzej Kaczmarek2012-09-211-1/+1
| | | | | get_dbus_connection is exported function which can be used by plugins thus should be prefixed with "btd_"
* gatt: Map Appearance value 0x0000 to "unknown"Claudio Takahasi2012-08-201-0/+2
| | | | | According to Bluetooth SIG Assigned numbers, Appearance characteristic value 0x0000 is designated to "unknown".
* dbus-common: Map GAP Appearance characteristic to iconBruna Moreira2012-03-301-0/+33
| | | | | | | | | | Add function appearance_to_icon() to map values from Appearance Characteristic to icon available. Note: The Appearance Characteristic is composed of a category (10-bits) and sub-categories (6-bits). These categories are defined at: http://developer.bluetooth.org/gatt/characteristics/Pages/ CharacteristicViewer.aspx?u=org.bluetooth.characteristic.gap.appearance.xml
* Remove unneeded header includeClaudio Takahasi2011-09-121-10/+1
|
* Add manager_foreach_adapter()Johan Hedberg2010-12-191-1/+1
| | | | | Ultimately manager_get_adapters shouldn't be needed at all. By introducing manager_foreach_adapter most instances can be removed.
* Remove unused includesJohan Hedberg2010-11-281-2/+0
|
* Simplify D-Bus connection handling and move it to main.cJohan Hedberg2010-10-261-109/+0
| | | | | | | | The reconnection logic for the system bus doesn't make much sense. If the system bus daemon dies so does most useful system functionality. Since the code for handling D-Bus setup and cleanup is very simple after this removal it makes sense to move it to main.c and make the functions static.
* Remove useless hcid_dbus_unregister functionJohan Hedberg2010-10-261-34/+0
|
* Rename dbus-hci.c event.c and use btd_event_ prefix for itJohan Hedberg2010-10-261-1/+1
|
* Move class_to_icon() to dbus-common.cJohan Hedberg2010-10-261-0/+64
|
* Move global D-Bus connection functions to dbus-common.cJohan Hedberg2010-10-261-0/+12
|
* Fix dict_append_array to accept types other than stringLuiz Augusto von Dentz2010-09-101-5/+11
|
* Fix append_variant_array() to take a number of elementsVinicius Costa Gomes2010-08-091-5/+6
| | | | | | | When appending a byte array, for example, we must provide the number of elements to the underlying functions, as the restriction that the last element is NULL cannot be used. This updates all the callers to use the new parameter.
* Move logging.{c,h} to log.{c,h}Gustavo F. Padovan2010-05-211-1/+1
| | | | Try to make log stuff more similar to ConnMan and oFono.
* Update Nokia copyrightsJohan Hedberg2010-01-071-1/+1
|
* Update copyright informationMarcel Holtmann2010-01-011-1/+1
|
* Fix bogus error comparisonJohan Hedberg2009-07-211-1/+1
| | | | | There's no "error" variable here so the comparison was always with the address of the public error function, which will always be != NULL.
* Move MAX_NAME_LENGTH define from hcid.h to adapter.hJohan Hedberg2009-06-301-1/+0
|
* Use a proper define for the maximum name lengthJohan Hedberg2009-06-301-0/+1
|
* Add udev mode to bluetoothdBastien Nocera2009-06-111-5/+13
| | | | | | | | | | | | | | Add --udev option to bluetoothd, to allow it to be started on-demand from udev. When a new adapter appears, udev would launch bluetoothd --udev. To avoid problems with udev, bluetoothd --udev would only return an error exit code if it wasn't already running and a real error occurred. When no more Bluetooth adapter are present on the system, bluetoothd will exit after a 30 second timeout.
* Move l2raw_connect over to device.c (since it's not needed anywhere else)Johan Hedberg2009-01-121-56/+0
|
* Add support for dedicated bonding using BT_SECURITYJohan Hedberg2009-01-121-1/+5
|
* Update copyright informationMarcel Holtmann2009-01-011-1/+1
|
* Cleanup adapters on exit.Luiz Augusto von Dentz2008-12-221-1/+2
| | | | | | | When bluetoothd is terminated any remaining registered adapters should be unregistered (including proper D-Bus signal emition) and have their drivers removed. The adapters should also be brought down unless they were already up upon initialization.
* Use g_dbus_send_message instead of dbus_connection_sendJohan Hedberg2008-10-241-12/+2
|
* Fix fallouts due to GDBusWatchFunction changesMarcel Holtmann2008-10-171-1/+1
|
* Add emit_array_property_changed()Johan Hedberg2008-10-161-67/+59
|
* Rename dbus_connection_emit_property_changed to emit_property_changedJohan Hedberg2008-10-161-5/+5
|
* Add dict_append_array()Johan Hedberg2008-10-161-0/+31
|
* Rename dbus_message_iter_append_dict_entry to dict_append_entryJohan Hedberg2008-10-161-2/+2
|
* Don't allow NULL strings in dictionaries (just ignore them)Marcel Holtmann2008-10-061-0/+6
|
* Modifying l2raw_connect to take bdaddr_t as parameter.Alok Barsode2008-09-121-3/+3
|
* Renaming struct adapter to struct btd_adapter.Alok Barsode2008-09-041-1/+1
|
* Storage cleanupClaudio Takahasi2008-08-281-1/+1
|
* Removed warningsClaudio Takahasi2008-08-261-0/+2
|
* Cleanup: unnecessary includesClaudio Takahasi2008-08-251-3/+0
|
* Remove SDP server and experimental optionMarcel Holtmann2008-08-041-12/+0
|
* Move hcid to src directory and rename it to bluetoothdMarcel Holtmann2008-07-291-0/+353