pulseaudio/src/modules
Tanu Kaskinen de0d803e3c bluetooth: Refactor device validity management
There are several intertwined changes that I couldn't separate into
nicer commits. This is mostly just refactoring, but this also fixes
a bug: the old code set the device valid in parse_device_properties()
even if the device's adapter was invalid (had NULL address).

To improve the clarity of the code, I split the device_info_valid
variable into two booleans: properties_received and valid.

I added function device_update_valid() that checks all conditions that
affect the device validity. The function can then be called from any
place where something changes that potentially affects the device
validity. However, currently the only validity-affecting thing that
can change is the device adapter, so device_update_valid() is only
called from set_device_adapter().

I added the aforementioned set_device_adapter() function so that
whenever the adapter is set, the device validity gets updated
automatically.

The new properties_received variable allowed me to remove the
is_property_update function parameters.
2014-06-06 15:05:45 +03:00
..
alsa alsa-mixer: Add surround 2.1 profile 2014-05-27 12:02:31 +02:00
bluetooth bluetooth: Refactor device validity management 2014-06-06 15:05:45 +03:00
dbus source, sink: Support weird sample rates 2014-06-05 15:57:00 +03:00
echo-cancel echo-cancel: Remove redundant get_mute() callback 2014-05-02 15:50:15 +03:00
gconf gconf: Avoid calling deprecated function if possible 2014-04-26 11:32:45 +03:00
jack Add pa_channels_valid() 2013-12-15 11:44:35 +01:00
macosx bonjour-publish: Return ports in network byteorder 2013-12-05 11:21:51 +02:00
oss modules: Fix resource leak in oss 2013-12-20 12:54:18 +01:00
raop modules: Fix resource leak in raop_client 2013-12-20 12:55:05 +01:00
rtp rtp-recv: fix crash on empty UDP packets (CVE-2014-3970) 2014-06-06 14:41:22 +03:00
x11 Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
xen Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
ladspa.h merge 'lennart' branch back into trunk. 2007-10-28 19:13:50 +00:00
Makefile build-sys: readd stub makefiles to subdirectories to make building with emacs easier 2012-05-15 14:17:58 +02:00
module-always-sink.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-augment-properties.c hashmap: Add the ability to free keys 2013-09-17 18:01:22 +05:30
module-card-restore.c card-restore: Fix a memory leak 2014-01-29 20:56:42 +02:00
module-cli.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-combine-sink.c combine-sink: rework output add/remove 2014-06-05 12:19:36 +03:00
module-combine.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-console-kit.c Use pa_hashmap_remove_and_free() where appropriate 2014-04-17 10:06:23 +03:00
module-default-device-restore.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-defs.h.m4 Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-detect.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-device-manager.c Fix a few "it's -> its" typos 2014-03-07 18:04:02 +02:00
module-device-restore.c device-restore: log restored mute state 2014-03-26 17:15:26 +02:00
module-equalizer-sink.c modules: Add assertion in equalizer-sink 2013-12-20 12:55:17 +01:00
module-esound-compat-spawnfd.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-esound-compat-spawnpid.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-esound-sink.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-filter-apply.c hashmap: Add the ability to free keys 2013-09-17 18:01:22 +05:30
module-filter-heuristics.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-hal-detect-compat.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-intended-roles.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-ladspa-sink.c Revert "ladspa-sink: Handle empty chunks in sink_input_pop_cb" 2014-01-15 14:24:25 +02:00
module-lirc.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-loopback.c loopback: Increase the maximum allowed latency 2013-07-29 10:43:12 +03:00
module-match.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-mmkbd-evdev.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-native-protocol-fd.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-null-sink.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-null-source.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-pipe-sink.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-pipe-source.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-position-event-sounds.c modules: Remove dead code in position-event-sounds 2013-12-20 12:55:17 +01:00
module-protocol-stub.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-remap-sink.c module-remap-sink: Add resample_method argument 2013-12-05 11:04:19 +02:00
module-remap-source.c module-remap-source: Add resample_method argument 2013-12-05 11:05:24 +02:00
module-rescue-streams.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-role-cork.c sink-input, source-output: Remove redundant get_mute() functions 2014-05-02 16:00:56 +03:00
module-role-ducking.c idxset: Use pa_free_cb_t instead of pa_free2_cb_t 2013-02-16 01:15:27 +02:00
module-rygel-media-server.c Revert dbus_bool_t variables to use TRUE/FALSE instead of true/false 2013-07-04 12:25:47 +03:00
module-sine-source.c modules: Make use of new function pa_modargs_get_sample_rate() 2013-12-05 10:54:12 +02:00
module-sine.c module-sine: Add rate argument 2013-12-05 11:03:10 +02:00
module-solaris.c solaris, tunnel: Remove some redundant boolean conversions 2014-05-02 16:00:56 +03:00
module-stream-restore.c sink-input, source-output: Remove redundant get_mute() functions 2014-05-02 16:00:56 +03:00
module-suspend-on-idle.c Use pa_hashmap_remove_and_free() where appropriate 2014-04-17 10:06:23 +03:00
module-switch-on-connect.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-switch-on-port-available.c module-switch-on-port-available: Use new find best port function 2014-04-04 07:28:34 +02:00
module-systemd-login.c hashmap: Add the ability to free keys 2013-09-17 18:01:22 +05:30
module-tunnel-sink-new.c modules: Fix resource leak in tunnel-sink-new 2013-12-20 12:54:19 +01:00
module-tunnel-source-new.c tunnel-source-new: Fix shadow compiler warning 2014-03-06 15:48:36 +01:00
module-tunnel.c solaris, tunnel: Remove some redundant boolean conversions 2014-05-02 16:00:56 +03:00
module-udev-detect.c hashmap: Add the ability to free keys 2013-09-17 18:01:22 +05:30
module-virtual-sink.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-virtual-source.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-virtual-surround-sink.c virtual-surround-sink: Move normalization heuristic to its own function 2014-04-17 10:46:26 +03:00
module-volume-restore.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-waveout.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
module-zeroconf-discover.c zeroconf-discover: Specify the interface when connecting to a link-local IPv6 address 2014-01-15 12:20:27 +02:00
module-zeroconf-publish.c Use pa_hashmap_remove_and_free() where appropriate 2014-04-17 10:06:23 +03:00
reserve-monitor.c reserve: Move get_name_owner() to the public rd_device API 2013-01-31 13:56:25 +02:00
reserve-monitor.h More spelling fixes 2011-08-25 11:27:47 +01:00
reserve-wrap.c Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
reserve-wrap.h Remove pa_bool_t and replace it with bool. 2013-07-04 12:25:30 +03:00
reserve.c reserve: Fix leaking NameLost signals after release+acquire 2013-01-31 14:04:45 +02:00
reserve.h reserve: Move get_name_owner() to the public rd_device API 2013-01-31 13:56:25 +02:00
udev-util.c udev: Don't use deprecated udev_get_*_path() functions 2012-05-29 09:17:18 +05:30
udev-util.h Whitespace cleanup: Remove all multiple newlines 2013-06-24 16:56:24 +03:00