mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
strbuf: add new call pa_strbuf_putc()
This commit is contained in:
parent
5d39b8d22d
commit
9745483cdd
2 changed files with 8 additions and 0 deletions
|
|
@ -113,6 +113,13 @@ void pa_strbuf_puts(pa_strbuf *sb, const char *t) {
|
||||||
pa_strbuf_putsn(sb, t, strlen(t));
|
pa_strbuf_putsn(sb, t, strlen(t));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Append a character to the string buffer */
|
||||||
|
void pa_strbuf_putc(pa_strbuf *sb, char c) {
|
||||||
|
pa_assert(sb);
|
||||||
|
|
||||||
|
pa_strbuf_putsn(sb, &c, 1);
|
||||||
|
}
|
||||||
|
|
||||||
/* Append a new chunk to the linked list */
|
/* Append a new chunk to the linked list */
|
||||||
static void append(pa_strbuf *sb, struct chunk *c) {
|
static void append(pa_strbuf *sb, struct chunk *c) {
|
||||||
pa_assert(sb);
|
pa_assert(sb);
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ char *pa_strbuf_tostring_free(pa_strbuf *sb);
|
||||||
size_t pa_strbuf_printf(pa_strbuf *sb, const char *format, ...) PA_GCC_PRINTF_ATTR(2,3);
|
size_t pa_strbuf_printf(pa_strbuf *sb, const char *format, ...) PA_GCC_PRINTF_ATTR(2,3);
|
||||||
void pa_strbuf_puts(pa_strbuf *sb, const char *t);
|
void pa_strbuf_puts(pa_strbuf *sb, const char *t);
|
||||||
void pa_strbuf_putsn(pa_strbuf *sb, const char *t, size_t m);
|
void pa_strbuf_putsn(pa_strbuf *sb, const char *t, size_t m);
|
||||||
|
void pa_strbuf_putc(pa_strbuf *sb, char c);
|
||||||
|
|
||||||
pa_bool_t pa_strbuf_isempty(pa_strbuf *sb);
|
pa_bool_t pa_strbuf_isempty(pa_strbuf *sb);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue