X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Fcompat%2Fdirectory-handle.h;h=0ad5c851072ab68de75788aeeb42c657dbd19e8c;hp=5974e36e35538cac553dd22daf81b1d24aba9410;hb=0e98551307eb5a7a59cc74982b386dc95f4c4f89;hpb=b2621f79ae2fade4d2d7f21624dfe4649e5e3352 diff --git a/src/common/compat/directory-handle.h b/src/common/compat/directory-handle.h index 5974e36e3..0ad5c8510 100644 --- a/src/common/compat/directory-handle.h +++ b/src/common/compat/directory-handle.h @@ -37,6 +37,7 @@ enum lttng_directory_handle_rmdir_recursive_flags { #ifdef COMPAT_DIRFD struct lttng_directory_handle { struct urcu_ref ref; + ino_t directory_inode; int dirfd; }; @@ -256,4 +257,13 @@ int lttng_directory_handle_remove_subdirectory_recursive_as_user( const struct lttng_credentials *creds, int flags); +/* + * Compare two directory handles. + * + * Returns true if the two directory handles are equal, false otherwise. + */ +LTTNG_HIDDEN +bool lttng_directory_handle_equals(const struct lttng_directory_handle *lhs, + const struct lttng_directory_handle *rhs); + #endif /* _COMPAT_PATH_HANDLE_H */