ringbuf: hide unnecessary symbols

parent 95b83e47
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#include <stdio.h> #include <stdio.h>
#include <sys/mman.h> #include <sys/mman.h>
#include "compiler.h"
/** /**
* lxc_ringbuf - Implements a simple and efficient memory mapped ringbuffer. * lxc_ringbuf - Implements a simple and efficient memory mapped ringbuffer.
* - The "addr" field of struct lxc_ringbuf is considered immutable. Instead the * - The "addr" field of struct lxc_ringbuf is considered immutable. Instead the
...@@ -29,10 +31,10 @@ struct lxc_ringbuf { ...@@ -29,10 +31,10 @@ struct lxc_ringbuf {
* *
* @param[in] size Size of the new ringbuffer as a power of 2. * @param[in] size Size of the new ringbuffer as a power of 2.
*/ */
extern int lxc_ringbuf_create(struct lxc_ringbuf *buf, size_t size); __hidden extern int lxc_ringbuf_create(struct lxc_ringbuf *buf, size_t size);
extern void lxc_ringbuf_move_read_addr(struct lxc_ringbuf *buf, size_t len); __hidden extern void lxc_ringbuf_move_read_addr(struct lxc_ringbuf *buf, size_t len);
extern int lxc_ringbuf_write(struct lxc_ringbuf *buf, const char *msg, size_t len); __hidden extern int lxc_ringbuf_write(struct lxc_ringbuf *buf, const char *msg, size_t len);
extern int lxc_ringbuf_read(struct lxc_ringbuf *buf, char *out, size_t *len); __hidden extern int lxc_ringbuf_read(struct lxc_ringbuf *buf, char *out, size_t *len);
static inline void lxc_ringbuf_release(struct lxc_ringbuf *buf) static inline void lxc_ringbuf_release(struct lxc_ringbuf *buf)
{ {
......
...@@ -24,6 +24,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \ ...@@ -24,6 +24,7 @@ lxc_test_api_reboot_SOURCES = api_reboot.c \
../lxc/nl.c ../lxc/nl.h \ ../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \ ../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \ ../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/ringbuf.c ../lxc/ringbuf.h \
../lxc/string_utils.c ../lxc/string_utils.h ../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_api_reboot_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
...@@ -47,6 +48,7 @@ lxc_test_attach_SOURCES = attach.c \ ...@@ -47,6 +48,7 @@ lxc_test_attach_SOURCES = attach.c \
../lxc/nl.c ../lxc/nl.h \ ../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \ ../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \ ../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/ringbuf.c ../lxc/ringbuf.h \
../lxc/string_utils.c ../lxc/string_utils.h ../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_attach_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
...@@ -70,6 +72,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \ ...@@ -70,6 +72,7 @@ lxc_test_cgpath_SOURCES = cgpath.c \
../lxc/nl.c ../lxc/nl.h \ ../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \ ../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \ ../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/ringbuf.c ../lxc/ringbuf.h \
../lxc/string_utils.c ../lxc/string_utils.h ../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_cgpath_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
...@@ -95,6 +98,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \ ...@@ -95,6 +98,7 @@ lxc_test_config_jump_table_SOURCES = config_jump_table.c \
../lxc/nl.c ../lxc/nl.h \ ../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \ ../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \ ../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/ringbuf.c ../lxc/ringbuf.h \
../lxc/string_utils.c ../lxc/string_utils.h ../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_config_jump_table_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
...@@ -138,6 +142,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \ ...@@ -138,6 +142,7 @@ lxc_test_parse_config_file_SOURCES = parse_config_file.c \
../lxc/nl.c ../lxc/nl.h \ ../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \ ../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \ ../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/ringbuf.c ../lxc/ringbuf.h \
../lxc/string_utils.c ../lxc/string_utils.h ../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_parse_config_file_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
...@@ -184,6 +189,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \ ...@@ -184,6 +189,7 @@ lxc_test_utils_SOURCES = lxc-test-utils.c \
../lxc/nl.c ../lxc/nl.h \ ../lxc/nl.c ../lxc/nl.h \
../lxc/parse.c ../lxc/parse.h \ ../lxc/parse.c ../lxc/parse.h \
../lxc/process_utils.c ../lxc/process_utils.h \ ../lxc/process_utils.c ../lxc/process_utils.h \
../lxc/ringbuf.c ../lxc/ringbuf.h \
../lxc/string_utils.c ../lxc/string_utils.h ../lxc/string_utils.c ../lxc/string_utils.h
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h lxc_test_utils_SOURCES += ../lxc/seccomp.c ../lxc/lxcseccomp.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment