mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -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
|
|
@ -53,7 +53,7 @@ static int core_process_msg(pa_msgobject *o, int code, void *userdata, int64_t o
|
|||
switch (code) {
|
||||
|
||||
case PA_CORE_MESSAGE_UNLOAD_MODULE:
|
||||
pa_module_unload(c, userdata, TRUE);
|
||||
pa_module_unload(c, userdata, true);
|
||||
return 0;
|
||||
|
||||
default:
|
||||
|
|
@ -63,7 +63,7 @@ static int core_process_msg(pa_msgobject *o, int code, void *userdata, int64_t o
|
|||
|
||||
static void core_free(pa_object *o);
|
||||
|
||||
pa_core* pa_core_new(pa_mainloop_api *m, pa_bool_t shared, size_t shm_size) {
|
||||
pa_core* pa_core_new(pa_mainloop_api *m, bool shared, size_t shm_size) {
|
||||
pa_core* c;
|
||||
pa_mempool *pool;
|
||||
int j;
|
||||
|
|
@ -73,7 +73,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, pa_bool_t shared, size_t shm_size) {
|
|||
if (shared) {
|
||||
if (!(pool = pa_mempool_new(shared, shm_size))) {
|
||||
pa_log_warn("failed to allocate shared memory pool. Falling back to a normal memory pool.");
|
||||
shared = FALSE;
|
||||
shared = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -132,15 +132,15 @@ pa_core* pa_core_new(pa_mainloop_api *m, pa_bool_t shared, size_t shm_size) {
|
|||
c->exit_idle_time = -1;
|
||||
c->scache_idle_time = 20;
|
||||
|
||||
c->flat_volumes = TRUE;
|
||||
c->disallow_module_loading = FALSE;
|
||||
c->disallow_exit = FALSE;
|
||||
c->running_as_daemon = FALSE;
|
||||
c->realtime_scheduling = FALSE;
|
||||
c->flat_volumes = true;
|
||||
c->disallow_module_loading = false;
|
||||
c->disallow_exit = false;
|
||||
c->running_as_daemon = false;
|
||||
c->realtime_scheduling = false;
|
||||
c->realtime_priority = 5;
|
||||
c->disable_remixing = FALSE;
|
||||
c->disable_lfe_remixing = FALSE;
|
||||
c->deferred_volume = TRUE;
|
||||
c->disable_remixing = false;
|
||||
c->disable_lfe_remixing = false;
|
||||
c->deferred_volume = true;
|
||||
c->resample_method = PA_RESAMPLER_SPEEX_FLOAT_BASE + 1;
|
||||
|
||||
for (j = 0; j < PA_CORE_HOOK_MAX; j++)
|
||||
|
|
@ -221,7 +221,7 @@ static void exit_callback(pa_mainloop_api *m, pa_time_event *e, const struct tim
|
|||
pa_assert(c->exit_event == e);
|
||||
|
||||
pa_log_info("We are idle, quitting...");
|
||||
pa_core_exit(c, TRUE, 0);
|
||||
pa_core_exit(c, true, 0);
|
||||
}
|
||||
|
||||
void pa_core_check_idle(pa_core *c) {
|
||||
|
|
@ -239,7 +239,7 @@ void pa_core_check_idle(pa_core *c) {
|
|||
}
|
||||
}
|
||||
|
||||
int pa_core_exit(pa_core *c, pa_bool_t force, int retval) {
|
||||
int pa_core_exit(pa_core *c, bool force, int retval) {
|
||||
pa_assert(c);
|
||||
|
||||
if (c->disallow_exit && !force)
|
||||
|
|
@ -281,7 +281,7 @@ pa_time_event* pa_core_rttime_new(pa_core *c, pa_usec_t usec, pa_time_event_cb_t
|
|||
pa_assert(c);
|
||||
pa_assert(c->mainloop);
|
||||
|
||||
return c->mainloop->time_new(c->mainloop, pa_timeval_rtstore(&tv, usec, TRUE), cb, userdata);
|
||||
return c->mainloop->time_new(c->mainloop, pa_timeval_rtstore(&tv, usec, true), cb, userdata);
|
||||
}
|
||||
|
||||
void pa_core_rttime_restart(pa_core *c, pa_time_event *e, pa_usec_t usec) {
|
||||
|
|
@ -290,5 +290,5 @@ void pa_core_rttime_restart(pa_core *c, pa_time_event *e, pa_usec_t usec) {
|
|||
pa_assert(c);
|
||||
pa_assert(c->mainloop);
|
||||
|
||||
c->mainloop->time_restart(e, pa_timeval_rtstore(&tv, usec, TRUE));
|
||||
c->mainloop->time_restart(e, pa_timeval_rtstore(&tv, usec, true));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue