]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/strbuf.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2012 Kay Sievers <kay@vrfy.org>
12 #include <sys/types.h>
17 struct strbuf_node
*root
;
30 struct strbuf_child_entry
*children
;
31 uint8_t children_count
;
34 struct strbuf_child_entry
{
36 struct strbuf_node
*child
;
39 struct strbuf
*strbuf_new(void);
40 ssize_t
strbuf_add_string(struct strbuf
*str
, const char *s
, size_t len
);
41 void strbuf_complete(struct strbuf
*str
);
42 void strbuf_cleanup(struct strbuf
*str
);