This hides a use of share_mode_data->num_share_modes in
share_mode_lock.c
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
void *private_data),
void *private_data);
NTSTATUS share_mode_wakeup_waiters(struct file_id id);
+bool share_mode_have_entries(struct share_mode_lock *lck);
struct tevent_req *share_mode_watch_send(
TALLOC_CTX *mem_ctx,
return share_mode_do_locked(id, share_mode_wakeup_waiters_fn, NULL);
}
+bool share_mode_have_entries(struct share_mode_lock *lck)
+{
+ return (lck->data->num_share_modes != 0);
+}
+
struct share_mode_watch_state {
struct tevent_context *ev;
bool blockerdead;