mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -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
|
|
@ -109,7 +109,7 @@ static pa_scache_entry* scache_add_item(pa_core *c, const char *name) {
|
|||
} else {
|
||||
e = pa_xnew(pa_scache_entry, 1);
|
||||
|
||||
if (!pa_namereg_register(c, name, PA_NAMEREG_SAMPLE, e, TRUE)) {
|
||||
if (!pa_namereg_register(c, name, PA_NAMEREG_SAMPLE, e, true)) {
|
||||
pa_xfree(e);
|
||||
return NULL;
|
||||
}
|
||||
|
|
@ -126,13 +126,13 @@ static pa_scache_entry* scache_add_item(pa_core *c, const char *name) {
|
|||
e->last_used_time = 0;
|
||||
pa_memchunk_reset(&e->memchunk);
|
||||
e->filename = NULL;
|
||||
e->lazy = FALSE;
|
||||
e->lazy = false;
|
||||
e->last_used_time = 0;
|
||||
|
||||
pa_sample_spec_init(&e->sample_spec);
|
||||
pa_channel_map_init(&e->channel_map);
|
||||
pa_cvolume_init(&e->volume);
|
||||
e->volume_is_set = FALSE;
|
||||
e->volume_is_set = false;
|
||||
|
||||
pa_proplist_sets(e->proplist, PA_PROP_MEDIA_ROLE, "event");
|
||||
|
||||
|
|
@ -171,7 +171,7 @@ int pa_scache_add_item(
|
|||
pa_sample_spec_init(&e->sample_spec);
|
||||
pa_channel_map_init(&e->channel_map);
|
||||
pa_cvolume_init(&e->volume);
|
||||
e->volume_is_set = FALSE;
|
||||
e->volume_is_set = false;
|
||||
|
||||
if (ss) {
|
||||
e->sample_spec = *ss;
|
||||
|
|
@ -249,7 +249,7 @@ int pa_scache_add_file_lazy(pa_core *c, const char *name, const char *filename,
|
|||
if (!(e = scache_add_item(c, name)))
|
||||
return -1;
|
||||
|
||||
e->lazy = TRUE;
|
||||
e->lazy = true;
|
||||
e->filename = pa_xstrdup(filename);
|
||||
|
||||
pa_proplist_sets(e->proplist, PA_PROP_MEDIA_FILENAME, filename);
|
||||
|
|
@ -296,7 +296,7 @@ int pa_scache_play_item(pa_core *c, const char *name, pa_sink *sink, pa_volume_t
|
|||
pa_scache_entry *e;
|
||||
pa_cvolume r;
|
||||
pa_proplist *merged;
|
||||
pa_bool_t pass_volume;
|
||||
bool pass_volume;
|
||||
|
||||
pa_assert(c);
|
||||
pa_assert(name);
|
||||
|
|
@ -330,7 +330,7 @@ int pa_scache_play_item(pa_core *c, const char *name, pa_sink *sink, pa_volume_t
|
|||
|
||||
pa_log_debug("Playing sample \"%s\" on \"%s\"", name, sink->name);
|
||||
|
||||
pass_volume = TRUE;
|
||||
pass_volume = true;
|
||||
|
||||
if (e->volume_is_set && PA_VOLUME_IS_VALID(volume)) {
|
||||
pa_cvolume_set(&r, e->sample_spec.channels, volume);
|
||||
|
|
@ -340,7 +340,7 @@ int pa_scache_play_item(pa_core *c, const char *name, pa_sink *sink, pa_volume_t
|
|||
else if (PA_VOLUME_IS_VALID(volume))
|
||||
pa_cvolume_set(&r, e->sample_spec.channels, volume);
|
||||
else
|
||||
pass_volume = FALSE;
|
||||
pass_volume = false;
|
||||
|
||||
pa_proplist_update(merged, PA_UPDATE_REPLACE, e->proplist);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue