aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/fifo_buffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/fifo_buffer.h (renamed from src/fifo_buffer.h)11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fifo_buffer.h b/src/util/fifo_buffer.h
index 3bdb23938..ccea97d86 100644
--- a/src/fifo_buffer.h
+++ b/src/util/fifo_buffer.h
@@ -46,6 +46,10 @@
struct fifo_buffer;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* Creates a new #fifo_buffer object. Free this object with
* fifo_buffer_free().
@@ -56,6 +60,9 @@ struct fifo_buffer;
struct fifo_buffer *
fifo_buffer_new(size_t size);
+void
+fifo_buffer_init(struct fifo_buffer *buffer, size_t size);
+
/**
* Change the capacity of the #fifo_buffer, while preserving existing
* data.
@@ -150,4 +157,8 @@ fifo_buffer_is_empty(struct fifo_buffer *buffer);
bool
fifo_buffer_is_full(struct fifo_buffer *buffer);
+#ifdef __cplusplus
+}
+#endif
+
#endif