summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/strbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/strbuf.c')
-rw-r--r--src/pulsecore/strbuf.c6
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;
+}