relayd: track directory handles through the fd-tracker
[lttng-tools.git] / src / common / compat / directory-handle.h
index 35e91f71c03c72b44129b618220acc0d9cdc9014..574a09d743776e831d04fe9ef24f07e4790be32d 100644 (file)
@@ -26,10 +26,18 @@ enum lttng_directory_handle_rmdir_recursive_flags {
  * or a directory file descriptors, depending on the platform's capabilities.
  */
 #ifdef COMPAT_DIRFD
+
+struct lttng_directory_handle;
+
+typedef void (*lttng_directory_handle_destroy_cb)(
+               struct lttng_directory_handle *handle, void *data);
+
 struct lttng_directory_handle {
        struct urcu_ref ref;
        ino_t directory_inode;
        int dirfd;
+       lttng_directory_handle_destroy_cb destroy_cb;
+       void *destroy_cb_data;
 };
 
 static inline
This page took 0.024119 seconds and 5 git commands to generate.