From: Volker Lendecke Date: Wed, 4 Nov 2020 12:42:03 +0000 (+0100) Subject: locking: Add share_mode_servicepath() accessor function X-Git-Tag: samba-4.14.0rc1~659 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5aab299dff2b11607444876624e84cf33833fdf5;p=thirdparty%2Fsamba.git locking: Add share_mode_servicepath() accessor function Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/locking/share_mode_lock.c b/source3/locking/share_mode_lock.c index 1cfd0ed3d52..2ce7c1c2ea7 100644 --- a/source3/locking/share_mode_lock.c +++ b/source3/locking/share_mode_lock.c @@ -1126,6 +1126,11 @@ NTTIME share_mode_changed_write_time(struct share_mode_lock *lck) return lck->data->changed_write_time; } +const char *share_mode_servicepath(struct share_mode_lock *lck) +{ + return lck->data->servicepath; +} + char *share_mode_filename(TALLOC_CTX *mem_ctx, struct share_mode_lock *lck) { struct share_mode_data *d = lck->data; diff --git a/source3/locking/share_mode_lock.h b/source3/locking/share_mode_lock.h index 74e6a51f40d..8531d319728 100644 --- a/source3/locking/share_mode_lock.h +++ b/source3/locking/share_mode_lock.h @@ -99,6 +99,7 @@ bool share_mode_forall_entries( bool share_mode_have_entries(struct share_mode_lock *lck); NTTIME share_mode_changed_write_time(struct share_mode_lock *lck); +const char *share_mode_servicepath(struct share_mode_lock *lck); char *share_mode_filename(TALLOC_CTX *mem_ctx, struct share_mode_lock *lck); struct tevent_req *share_mode_watch_send(