X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fpipe.hpp;h=9798a8cf8c794ea191db2fa0445695dc3a4feca0;hb=feef6f74e701ea68540ca306628888c1cf4f01bd;hp=4e6afc567831868c570ab36c2fa8998fd8357ca0;hpb=0038180de36c422cfaeade1145fa9fbc9436b8ad;p=lttng-tools.git diff --git a/src/common/pipe.hpp b/src/common/pipe.hpp index 4e6afc567..9798a8cf8 100644 --- a/src/common/pipe.hpp +++ b/src/common/pipe.hpp @@ -30,7 +30,7 @@ struct lttng_pipe { using uptr = std::unique_ptr< lttng_pipe, - lttng::details::create_unique_class::deleter>; + lttng::memory::create_deleter_class::deleter>; /* Read: 0, Write: 1. */ int fd[2]; @@ -79,15 +79,13 @@ static inline int lttng_pipe_get_writefd(const struct lttng_pipe *pipe) } struct lttng_pipe *lttng_pipe_open(int flags); -struct lttng_pipe *lttng_pipe_named_open(const char *path, mode_t mode, - int flags); +struct lttng_pipe *lttng_pipe_named_open(const char *path, mode_t mode, int flags); int lttng_pipe_write_close(struct lttng_pipe *pipe); int lttng_pipe_read_close(struct lttng_pipe *pipe); void lttng_pipe_destroy(struct lttng_pipe *pipe); ssize_t lttng_pipe_read(struct lttng_pipe *pipe, void *buf, size_t count); -ssize_t lttng_pipe_write(struct lttng_pipe *pipe, const void *buf, - size_t count); +ssize_t lttng_pipe_write(struct lttng_pipe *pipe, const void *buf, size_t count); /* Returns and releases the read end of the pipe. */ int lttng_pipe_release_readfd(struct lttng_pipe *pipe); /* Returns and releases the write end of the pipe. */