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
|
|
@ -87,7 +87,7 @@ int pa_memblockq_push(pa_memblockq* bq, const pa_memchunk *chunk);
|
|||
int pa_memblockq_push_align(pa_memblockq* bq, const pa_memchunk *chunk);
|
||||
|
||||
/* Manipulate the write pointer */
|
||||
void pa_memblockq_seek(pa_memblockq *bq, int64_t offset, pa_seek_mode_t seek, pa_bool_t account);
|
||||
void pa_memblockq_seek(pa_memblockq *bq, int64_t offset, pa_seek_mode_t seek, bool account);
|
||||
|
||||
/* Return a copy of the next memory chunk in the queue. It is not
|
||||
* removed from the queue. There are two reasons this function might
|
||||
|
|
@ -109,7 +109,7 @@ void pa_memblockq_drop(pa_memblockq *bq, size_t length);
|
|||
void pa_memblockq_rewind(pa_memblockq *bq, size_t length);
|
||||
|
||||
/* Test if the pa_memblockq is currently readable, that is, more data than base */
|
||||
pa_bool_t pa_memblockq_is_readable(pa_memblockq *bq);
|
||||
bool pa_memblockq_is_readable(pa_memblockq *bq);
|
||||
|
||||
/* Return the length of the queue in bytes */
|
||||
size_t pa_memblockq_get_length(pa_memblockq *bq);
|
||||
|
|
@ -125,7 +125,7 @@ size_t pa_memblockq_pop_missing(pa_memblockq *bq);
|
|||
int pa_memblockq_splice(pa_memblockq *bq, pa_memblockq *source);
|
||||
|
||||
/* Set the queue to silence, set write index to read index */
|
||||
void pa_memblockq_flush_write(pa_memblockq *bq, pa_bool_t account);
|
||||
void pa_memblockq_flush_write(pa_memblockq *bq, bool account);
|
||||
|
||||
/* Set the queue to silence, set write read index to write index*/
|
||||
void pa_memblockq_flush_read(pa_memblockq *bq);
|
||||
|
|
@ -178,13 +178,13 @@ void pa_memblockq_willneed(pa_memblockq *bq);
|
|||
/* Check whether the memblockq is completely empty, i.e. no data
|
||||
* neither left nor right of the read pointer, and hence no buffered
|
||||
* data for the future nor data in the backlog. */
|
||||
pa_bool_t pa_memblockq_is_empty(pa_memblockq *bq);
|
||||
bool pa_memblockq_is_empty(pa_memblockq *bq);
|
||||
|
||||
/* Drop everything in the queue, but don't modify the indexes */
|
||||
void pa_memblockq_silence(pa_memblockq *bq);
|
||||
|
||||
/* Check whether we currently are in prebuf state */
|
||||
pa_bool_t pa_memblockq_prebuf_active(pa_memblockq *bq);
|
||||
bool pa_memblockq_prebuf_active(pa_memblockq *bq);
|
||||
|
||||
/* Return how many items are currently stored in the queue */
|
||||
unsigned pa_memblockq_get_nblocks(pa_memblockq *bq);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue