X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fdirectory-handle.h;h=ceebc941e724ea690003698eb7c469789f3f2dba;hb=578e21bdc951a54e34fe539b64e446557b703206;hp=7d2cab339fc28ad15752d6a2652679e3a7df359e;hpb=aa4f202cca9bdf66f3ed53ed9b7d4534734cbbb9;p=lttng-tools.git diff --git a/src/common/compat/directory-handle.h b/src/common/compat/directory-handle.h index 7d2cab339..ceebc941e 100644 --- a/src/common/compat/directory-handle.h +++ b/src/common/compat/directory-handle.h @@ -55,6 +55,13 @@ LTTNG_HIDDEN int lttng_directory_handle_init_from_dirfd( struct lttng_directory_handle *handle, int dirfd); +/* + * Copy a directory handle. + */ +LTTNG_HIDDEN +int lttng_directory_handle_copy(const struct lttng_directory_handle *handle, + struct lttng_directory_handle *new_copy); + /* * Release the resources of a directory handle. */