projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unix: receive pid on non-linux platforms
[lttng-tools.git]
/
src
/
common
/
compat
/
directory-handle.h
diff --git
a/src/common/compat/directory-handle.h
b/src/common/compat/directory-handle.h
index 35e91f71c03c72b44129b618220acc0d9cdc9014..24f1e6f6810b318ac8ab8e0b26decdddcc388260 100644
(file)
--- a/
src/common/compat/directory-handle.h
+++ b/
src/common/compat/directory-handle.h
@@
-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.
*/
* 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;
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
};
static inline
This page took
0.02486 seconds
and
5
git commands to generate.