smbd: Add share_mode_forall_entries()
[samba.git] / source3 / locking / proto.h
index 7d2d28f4172ec41bdbed2a96cccf3c6ee8733bd3..ae8768e68e91be96c9b6cd7db2a93bb2ca45e933 100644 (file)
@@ -169,6 +169,7 @@ void get_file_infos(struct file_id id,
                    bool *delete_on_close,
                    struct timespec *write_time);
 bool is_valid_share_mode_entry(const struct share_mode_entry *e);
+bool share_entry_stale_pid(struct share_mode_entry *e);
 bool share_mode_stale_pid(struct share_mode_data *d, uint32_t idx);
 bool set_share_mode(struct share_mode_lock *lck,
                    struct files_struct *fsp,
@@ -222,6 +223,13 @@ bool share_mode_forall_leases(
                   void *private_data),
        void *private_data);
 
+bool share_mode_forall_entries(
+       struct share_mode_lock *lck,
+       bool (*fn)(struct share_mode_entry *e,
+                  bool *modified,
+                  void *private_data),
+       void *private_data);
+
 
 /* The following definitions come from locking/posix.c  */