Allow direct access to the dirfd of a directory handle
[lttng-tools.git] / src / common / compat / directory-handle.h
index fbdc19179e594aa358ec12564b46cdc7aae999fc..605c3dc814743e3ab43a3d206f4f87436a9b7da6 100644 (file)
 struct lttng_directory_handle {
        int dirfd;
 };
+
+static inline
+int lttng_directory_handle_get_dirfd(
+               const struct lttng_directory_handle *handle)
+{
+       return handle->dirfd;
+}
+
 #else
 struct lttng_directory_handle {
        char *base_path;
This page took 0.023588 seconds and 4 git commands to generate.