mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 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
|
|
@ -365,7 +365,7 @@ static dbus_bool_t get_is_local(DBusConnection *conn) {
|
|||
pa_assert(conn);
|
||||
|
||||
if (!dbus_connection_get_socket(conn, &conn_fd))
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
return pa_socket_is_local(conn_fd);
|
||||
}
|
||||
|
|
@ -1407,9 +1407,9 @@ static void handle_upload_sample(DBusConnection *conn, DBusMessage *msg, void *u
|
|||
sample->volume.channels = n_channels;
|
||||
for (i = 0; i < n_volume_entries; ++i)
|
||||
sample->volume.values[i] = default_volume[i];
|
||||
sample->volume_is_set = TRUE;
|
||||
sample->volume_is_set = true;
|
||||
} else {
|
||||
sample->volume_is_set = FALSE;
|
||||
sample->volume_is_set = false;
|
||||
}
|
||||
|
||||
dbus_sample = pa_dbusiface_sample_new(c, sample);
|
||||
|
|
@ -1427,17 +1427,17 @@ finish:
|
|||
pa_memblock_unref(chunk.memblock);
|
||||
}
|
||||
|
||||
static pa_bool_t contains_space(const char *string) {
|
||||
static bool contains_space(const char *string) {
|
||||
const char *p;
|
||||
|
||||
pa_assert(string);
|
||||
|
||||
for (p = string; *p; ++p) {
|
||||
if (isspace(*p))
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
static void handle_load_module(DBusConnection *conn, DBusMessage *msg, void *userdata) {
|
||||
|
|
@ -1530,7 +1530,7 @@ static void handle_exit(DBusConnection *conn, DBusMessage *msg, void *userdata)
|
|||
|
||||
pa_dbus_send_empty_reply(conn, msg);
|
||||
|
||||
pa_core_exit(c->core, FALSE, 0);
|
||||
pa_core_exit(c->core, false, 0);
|
||||
}
|
||||
|
||||
static void handle_listen_for_signal(DBusConnection *conn, DBusMessage *msg, void *userdata) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue