add pa_strbuf_isempty

This commit is contained in:
Lennart Poettering 2009-01-17 01:57:17 +01:00
parent b4d80462bf
commit 4a66837b83
2 changed files with 9 additions and 0 deletions

View file

@ -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;
}