mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
basic cli interface
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@22 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
eb946dbdbe
commit
993d1bce74
21 changed files with 505 additions and 49 deletions
13
src/strbuf.c
13
src/strbuf.c
|
|
@ -1,6 +1,3 @@
|
|||
#ifndef foostrbufhfoo
|
||||
#define foostrbufhfoo
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
|
@ -55,6 +52,14 @@ char *strbuf_tostring(struct strbuf *sb) {
|
|||
return t;
|
||||
}
|
||||
|
||||
char *strbuf_tostring_free(struct strbuf *sb) {
|
||||
char *t;
|
||||
assert(sb);
|
||||
t = strbuf_tostring(sb);
|
||||
strbuf_free(sb);
|
||||
return t;
|
||||
}
|
||||
|
||||
void strbuf_puts(struct strbuf *sb, const char *t) {
|
||||
struct chunk *c;
|
||||
size_t l;
|
||||
|
|
@ -118,5 +123,3 @@ int strbuf_printf(struct strbuf *sb, const char *format, ...) {
|
|||
size *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue