X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffd-handle.h;h=36a92473a0b6ec7c2c1162e779448f0885d3d4d7;hb=3afa94aeca5a0daae40fd7b6cc96b7e4c150c7d8;hp=4463f30055ee0996146220ac4095a513e1bc5813;hpb=dd1bac00c933616842aaf51ad4c4240ccee98838;p=lttng-tools.git diff --git a/src/common/fd-handle.h b/src/common/fd-handle.h index 4463f3005..36a92473a 100644 --- a/src/common/fd-handle.h +++ b/src/common/fd-handle.h @@ -10,6 +10,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + /* * Wrapper around a file descriptor providing reference counting semantics. * @@ -19,15 +23,12 @@ struct fd_handle; /* Create a file descriptor handle. */ -LTTNG_HIDDEN struct fd_handle *fd_handle_create(int fd); /* Acquire reference to a file descriptor handle. */ -LTTNG_HIDDEN void fd_handle_get(struct fd_handle *handle); /* Release reference to a file descriptor handle. */ -LTTNG_HIDDEN void fd_handle_put(struct fd_handle *handle); /* @@ -35,7 +36,6 @@ void fd_handle_put(struct fd_handle *handle); * * This function can't fail. */ -LTTNG_HIDDEN int fd_handle_get_fd(struct fd_handle *handle); /* @@ -46,7 +46,10 @@ int fd_handle_get_fd(struct fd_handle *handle); * the system documentation for the semantics of dup() for this particular file * descriptor type. */ -LTTNG_HIDDEN struct fd_handle *fd_handle_copy(const struct fd_handle *handle); +#ifdef __cplusplus +} +#endif + #endif /* FS_HANDLE_H */