Cleanup: relayd id is never used by write_relayd_metadata_id()
[lttng-tools.git] / src / common / pipe.h
index 1a1087c10e12ed1d4b8a6637a8c3f635e1530044..30f7c3f30d68ee120863056a1007430a0341bedb 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <pthread.h>
 #include <common/macros.h>
+#include <sys/types.h>
 
 enum lttng_pipe_state {
        LTTNG_PIPE_STATE_OPENED = 1,
@@ -93,5 +94,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 */
This page took 0.023052 seconds and 4 git commands to generate.