Relicence all source and header files included in LGPL code
[lttng-tools.git] / src / common / compat / directory-handle.h
index 35e91f71c03c72b44129b618220acc0d9cdc9014..e514dc5e3b9fc7747a195abb0cc22adb452245f7 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright (C) 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * SPDX-License-Identifier: GPL-2.0-only
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
  */
 
@@ -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.026709 seconds and 4 git commands to generate.