X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpipe.h;h=2d4fc967d615d5520e20de6098c561ac49148850;hb=df6a8b0587ad921879f43cc45f74005016d27b93;hp=1a1087c10e12ed1d4b8a6637a8c3f635e1530044;hpb=9c2bd8db1c70269d37537b7d02bae41ccab29056;p=lttng-tools.git diff --git a/src/common/pipe.h b/src/common/pipe.h index 1a1087c10..2d4fc967d 100644 --- a/src/common/pipe.h +++ b/src/common/pipe.h @@ -93,5 +93,11 @@ 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); +/* Returns and releases the read end of the pipe. */ +LTTNG_HIDDEN +int lttng_pipe_release_readfd(struct lttng_pipe *pipe); +/* Returns and releases the write end of the pipe. */ +LTTNG_HIDDEN +int lttng_pipe_release_writefd(struct lttng_pipe *pipe); #endif /* LTTNG_PIPE_H */