#include <pthread.h>
#include <common/macros.h>
+#include <sys/types.h>
enum lttng_pipe_state {
LTTNG_PIPE_STATE_OPENED = 1,
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 */