summaryrefslogtreecommitdiffstats
path: root/src/libnetdata/ringbuffer/ringbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libnetdata/ringbuffer/ringbuffer.h (renamed from src/aclk/mqtt_websockets/c-rbuf/cringbuffer.h)11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/aclk/mqtt_websockets/c-rbuf/cringbuffer.h b/src/libnetdata/ringbuffer/ringbuffer.h
index eb98035a..340112a8 100644
--- a/src/aclk/mqtt_websockets/c-rbuf/cringbuffer.h
+++ b/src/libnetdata/ringbuffer/ringbuffer.h
@@ -1,11 +1,10 @@
-// Copyright: SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef CRINGBUFFER_H
-#define CRINGBUFFER_H
+#ifndef RINGBUFFER_H
+#define RINGBUFFER_H
+#include "../libnetdata.h"
-#include <stddef.h>
-
-typedef struct rbuf_t *rbuf_t;
+typedef struct rbuf *rbuf_t;
rbuf_t rbuf_create(size_t size);
void rbuf_free(rbuf_t buffer);