Cleanup: autoconf 'dirfd' detection
[lttng-tools.git] / src / common / compat / directory-handle.h
index 35e91f71c03c72b44129b618220acc0d9cdc9014..24f1e6f6810b318ac8ab8e0b26decdddcc388260 100644 (file)
@@ -25,11 +25,19 @@ enum lttng_directory_handle_rmdir_recursive_flags {
  * This wrapper provides a handle that is either a copy of a directory's path
  * or a directory file descriptors, depending on the platform's capabilities.
  */
-#ifdef COMPAT_DIRFD
+#ifdef HAVE_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.02362 seconds and 4 git commands to generate.