mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
add pa_strbuf_isempty
This commit is contained in:
parent
b4d80462bf
commit
4a66837b83
2 changed files with 9 additions and 0 deletions
|
|
@ -180,3 +180,9 @@ size_t pa_strbuf_printf(pa_strbuf *sb, const char *format, ...) {
|
|||
size *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
pa_bool_t pa_strbuf_isempty(pa_strbuf *sb) {
|
||||
pa_assert(sb);
|
||||
|
||||
return sb->length <= 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue