mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Remove pa_bool_t and replace it with bool.
commands used for this (executed from the pulseaudio/src directory):
find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \
-a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \
-a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \
-exec sed -i -e 's/\bpa_bool_t\b/bool/g' \
-e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \;
and:
sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \
-e '181,194!s/\bTRUE\b/true/' -e \
'181,194!s/\bFALSE\b/false/' pulsecore/macro.h
This commit is contained in:
parent
e9822bfcb0
commit
d806b19714
288 changed files with 3360 additions and 3360 deletions
|
|
@ -121,7 +121,7 @@ static int try_to_switch_profile(pa_device_port *port) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (pa_card_set_profile(port->card, best_profile->name, FALSE) != 0) {
|
||||
if (pa_card_set_profile(port->card, best_profile->name, false) != 0) {
|
||||
pa_log_debug("Could not set profile %s", best_profile->name);
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -157,7 +157,7 @@ static pa_hook_result_t port_available_hook_callback(pa_core *c, pa_device_port
|
|||
pa_card* card;
|
||||
pa_sink *sink;
|
||||
pa_source *source;
|
||||
pa_bool_t is_active_profile, is_active_port;
|
||||
bool is_active_profile, is_active_port;
|
||||
|
||||
if (port->available == PA_AVAILABLE_UNKNOWN)
|
||||
return PA_HOOK_OK;
|
||||
|
|
@ -196,9 +196,9 @@ static pa_hook_result_t port_available_hook_callback(pa_core *c, pa_device_port
|
|||
}
|
||||
|
||||
if (source)
|
||||
pa_source_set_port(source, port->name, FALSE);
|
||||
pa_source_set_port(source, port->name, false);
|
||||
if (sink)
|
||||
pa_sink_set_port(sink, port->name, FALSE);
|
||||
pa_sink_set_port(sink, port->name, false);
|
||||
}
|
||||
|
||||
if (port->available == PA_AVAILABLE_NO) {
|
||||
|
|
@ -206,7 +206,7 @@ static pa_hook_result_t port_available_hook_callback(pa_core *c, pa_device_port
|
|||
pa_device_port *p2 = find_best_port(sink->ports);
|
||||
|
||||
if (p2 && p2->available != PA_AVAILABLE_NO)
|
||||
pa_sink_set_port(sink, p2->name, FALSE);
|
||||
pa_sink_set_port(sink, p2->name, false);
|
||||
else {
|
||||
/* Maybe try to switch to another profile? */
|
||||
}
|
||||
|
|
@ -216,7 +216,7 @@ static pa_hook_result_t port_available_hook_callback(pa_core *c, pa_device_port
|
|||
pa_device_port *p2 = find_best_port(source->ports);
|
||||
|
||||
if (p2 && p2->available != PA_AVAILABLE_NO)
|
||||
pa_source_set_port(source, p2->name, FALSE);
|
||||
pa_source_set_port(source, p2->name, false);
|
||||
else {
|
||||
/* Maybe try to switch to another profile? */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue