From a247c6e01e8840f757c5806dfcd2c7dd548bbaa2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 17 Sep 2015 13:29:11 -0400 Subject: [PATCH] Fix: Hide pipe symbols in common lib MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/common/pipe.c | 7 +++++++ src/common/pipe.h | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/src/common/pipe.c b/src/common/pipe.c index 09e905de4..2544f7b45 100644 --- a/src/common/pipe.c +++ b/src/common/pipe.c @@ -119,6 +119,7 @@ end: * * Return a newly allocated lttng pipe on success or else NULL. */ +LTTNG_HIDDEN struct lttng_pipe *lttng_pipe_open(int flags) { int ret; @@ -166,6 +167,7 @@ error: * * Return 0 on success else a negative value. */ +LTTNG_HIDDEN int lttng_pipe_read_close(struct lttng_pipe *pipe) { int ret; @@ -185,6 +187,7 @@ int lttng_pipe_read_close(struct lttng_pipe *pipe) * * Return 0 on success else a negative value. */ +LTTNG_HIDDEN int lttng_pipe_write_close(struct lttng_pipe *pipe) { int ret; @@ -203,6 +206,7 @@ int lttng_pipe_write_close(struct lttng_pipe *pipe) * * Return 0 on success else a negative value. */ +LTTNG_HIDDEN int lttng_pipe_close(struct lttng_pipe *pipe) { int ret, ret_val = 0; @@ -225,6 +229,7 @@ int lttng_pipe_close(struct lttng_pipe *pipe) /* * Close and destroy a lttng pipe object. Finally, pipe is freed. */ +LTTNG_HIDDEN void lttng_pipe_destroy(struct lttng_pipe *pipe) { int ret; @@ -261,6 +266,7 @@ void lttng_pipe_destroy(struct lttng_pipe *pipe) * Return "count" on success. Return < count on error. errno can be used * to check the actual error. */ +LTTNG_HIDDEN ssize_t lttng_pipe_read(struct lttng_pipe *pipe, void *buf, size_t count) { ssize_t ret; @@ -286,6 +292,7 @@ error: * Return "count" on success. Return < count on error. errno can be used * to check the actual error. */ +LTTNG_HIDDEN ssize_t lttng_pipe_write(struct lttng_pipe *pipe, const void *buf, size_t count) { diff --git a/src/common/pipe.h b/src/common/pipe.h index 11f41cf15..0bc2db325 100644 --- a/src/common/pipe.h +++ b/src/common/pipe.h @@ -19,6 +19,7 @@ #define LTTNG_PIPE_H #include +#include enum lttng_pipe_state { LTTNG_PIPE_STATE_OPENED = 1, @@ -72,14 +73,21 @@ static inline int lttng_pipe_get_writefd(struct lttng_pipe *pipe) return pipe->fd[1]; } +LTTNG_HIDDEN struct lttng_pipe *lttng_pipe_open(int flags); +LTTNG_HIDDEN int lttng_pipe_write_close(struct lttng_pipe *pipe); +LTTNG_HIDDEN int lttng_pipe_read_close(struct lttng_pipe *pipe); /* Close both side of pipe. */ +LTTNG_HIDDEN int lttng_pipe_close(struct lttng_pipe *pipe); +LTTNG_HIDDEN void lttng_pipe_destroy(struct lttng_pipe *pipe); +LTTNG_HIDDEN ssize_t lttng_pipe_read(struct lttng_pipe *pipe, void *buf, size_t count); +LTTNG_HIDDEN ssize_t lttng_pipe_write(struct lttng_pipe *pipe, const void *buf, size_t count); -- 2.34.1