summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2021-08-05 16:05:58 +0200
committerKarel Zak <kzak@redhat.com>2021-08-05 16:06:12 +0200
commitf60dc888489a0b8dcb24fe64659d3b7e8ebc778f (patch)
tree5bbf650985c434ba450ef651f241a13df8d68cbf /include
parent2e03758dc56ccfdec4ca3401136d2701a219b943 (diff)
downloadutil-linux-f60dc888489a0b8dcb24fe64659d3b7e8ebc778f.tar.gz
lib/buffer: retun size of the buffer and data
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/buffer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/buffer.h b/include/buffer.h
index 5bc7037f3..4163e0d75 100644
--- a/include/buffer.h
+++ b/include/buffer.h
@@ -23,6 +23,7 @@ int ul_buffer_append_data(struct ul_buffer *buf, const char *data, size_t sz);
int ul_buffer_append_string(struct ul_buffer *buf, const char *str);
int ul_buffer_append_ntimes(struct ul_buffer *buf, size_t n, const char *str);
int ul_buffer_set_data(struct ul_buffer *buf, const char *data, size_t sz);
-char *ul_buffer_get_data(struct ul_buffer *buf);
+char *ul_buffer_get_data(struct ul_buffer *buf, size_t *sz);
+size_t ul_buffer_get_bufsiz(struct ul_buffer *buf);
#endif /* UTIL_LINUX_BUFFER */