diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-17 01:57:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-17 01:57:17 +0100 |
commit | 4a66837b83d85ef9cad61f1d0e9fb776b0236368 (patch) | |
tree | bbec2bb2c8c6dac247ce6136152be0317970577e /src/pulsecore/strbuf.c | |
parent | b4d80462bf66530ead1e4877f848c63f7693bd58 (diff) |
add pa_strbuf_isempty
Diffstat (limited to 'src/pulsecore/strbuf.c')
-rw-r--r-- | src/pulsecore/strbuf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulsecore/strbuf.c b/src/pulsecore/strbuf.c index 540faef9..8b952788 100644 --- a/src/pulsecore/strbuf.c +++ b/src/pulsecore/strbuf.c @@ -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; +} |