mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
alsa: use pa_strbuf
This commit is contained in:
parent
c7ca024607
commit
1d3c4501ef
2 changed files with 26 additions and 27 deletions
|
|
@ -373,6 +373,17 @@ static PA_PRINTF_FUNC(2,3) inline size_t pa_strbuf_printf(pa_strbuf *sb, const c
|
|||
return ret > 0 ? ret : 0;
|
||||
}
|
||||
|
||||
static inline void pa_strbuf_puts(pa_strbuf *sb, const char *t)
|
||||
{
|
||||
fputs(t, sb->f);
|
||||
}
|
||||
|
||||
static inline bool pa_strbuf_isempty(pa_strbuf *sb)
|
||||
{
|
||||
fflush(sb->f);
|
||||
return sb->size == 0;
|
||||
}
|
||||
|
||||
static inline char *pa_strbuf_to_string_free(pa_strbuf *sb)
|
||||
{
|
||||
char *ptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue