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
|
|
@ -54,20 +54,20 @@ ssize_t pa_iochannel_write(pa_iochannel*io, const void*data, size_t l);
|
|||
ssize_t pa_iochannel_read(pa_iochannel*io, void*data, size_t l);
|
||||
|
||||
#ifdef HAVE_CREDS
|
||||
pa_bool_t pa_iochannel_creds_supported(pa_iochannel *io);
|
||||
bool pa_iochannel_creds_supported(pa_iochannel *io);
|
||||
int pa_iochannel_creds_enable(pa_iochannel *io);
|
||||
|
||||
ssize_t pa_iochannel_write_with_creds(pa_iochannel*io, const void*data, size_t l, const pa_creds *ucred);
|
||||
ssize_t pa_iochannel_read_with_creds(pa_iochannel*io, void*data, size_t l, pa_creds *ucred, pa_bool_t *creds_valid);
|
||||
ssize_t pa_iochannel_read_with_creds(pa_iochannel*io, void*data, size_t l, pa_creds *ucred, bool *creds_valid);
|
||||
#endif
|
||||
|
||||
pa_bool_t pa_iochannel_is_readable(pa_iochannel*io);
|
||||
pa_bool_t pa_iochannel_is_writable(pa_iochannel*io);
|
||||
pa_bool_t pa_iochannel_is_hungup(pa_iochannel*io);
|
||||
bool pa_iochannel_is_readable(pa_iochannel*io);
|
||||
bool pa_iochannel_is_writable(pa_iochannel*io);
|
||||
bool pa_iochannel_is_hungup(pa_iochannel*io);
|
||||
|
||||
/* Don't close the file descriptors when the io channel is freed. By
|
||||
* default the file descriptors are closed. */
|
||||
void pa_iochannel_set_noclose(pa_iochannel*io, pa_bool_t b);
|
||||
void pa_iochannel_set_noclose(pa_iochannel*io, bool b);
|
||||
|
||||
/* Set the callback function that is called whenever data becomes available for read or write */
|
||||
typedef void (*pa_iochannel_cb_t)(pa_iochannel*io, void *userdata);
|
||||
|
|
@ -80,7 +80,7 @@ void pa_iochannel_socket_peer_to_string(pa_iochannel*io, char*s, size_t l);
|
|||
int pa_iochannel_socket_set_rcvbuf(pa_iochannel*io, size_t l);
|
||||
int pa_iochannel_socket_set_sndbuf(pa_iochannel*io, size_t l);
|
||||
|
||||
pa_bool_t pa_iochannel_socket_is_local(pa_iochannel *io);
|
||||
bool pa_iochannel_socket_is_local(pa_iochannel *io);
|
||||
|
||||
pa_mainloop_api* pa_iochannel_get_mainloop_api(pa_iochannel *io);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue