locking: Add share_mode_servicepath() accessor function
authorVolker Lendecke <vl@samba.org>
Wed, 4 Nov 2020 12:42:03 +0000 (13:42 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Nov 2020 19:49:34 +0000 (19:49 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/locking/share_mode_lock.c
source3/locking/share_mode_lock.h

index 1cfd0ed3d5212aebfda9a90def3cabafe6c7bbf4..2ce7c1c2ea73e6877400a42563b7110053a00286 100644 (file)
@@ -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;
index 74e6a51f40d59db9c02f1170e643bc1bd0e5440e..8531d319728cfd9036e2cba402ccb20eee5af471 100644 (file)
@@ -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(