#endif
}
-static const char *
-file_lock_find(int lock_fd, enum file_lock_method lock_method, int lock_type)
+const char *file_lock_find(int lock_fd, enum file_lock_method lock_method,
+ int lock_type)
{
const char *ret;
/* Free the lock without unlocking it (because you're closing the fd anyway). */
void file_lock_free(struct file_lock **lock);
+/* Returns human-readable string containing the process that has the file
+ currently locked. Returns "" if unknown, otherwise " (string)". */
+const char *file_lock_find(int lock_fd, enum file_lock_method lock_method,
+ int lock_type);
+
#endif