directory-handle: query if instance is backed by a file descriptor
[lttng-tools.git] / src / common / compat / directory-handle.h
index 551fa50b439b84c85cc6d2bfa667943836973454..b6ee8b3846fdc7a70a77f19c295ab49b23bd3555 100644 (file)
@@ -267,6 +267,14 @@ int lttng_directory_handle_stat(
                const char *name,
                struct stat *stat_buf);
 
+/*
+ * Returns true if this directory handle is backed by a file
+ * descriptor, false otherwise.
+ */
+LTTNG_HIDDEN
+bool lttng_directory_handle_uses_fd(
+               const struct lttng_directory_handle *handle);
+
 /*
  * Compare two directory handles.
  *
This page took 0.023107 seconds and 4 git commands to generate.