locking: hide share_mode_lock definition
authorVolker Lendecke <vl@samba.org>
Wed, 4 Nov 2020 11:39:48 +0000 (12:39 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Nov 2020 21:12:48 +0000 (21:12 +0000)
commitd762ab558ae6c16ba5007fb38e44c9667d952e2b
tree2ce12c42c5e06180b3c8f934984a3e0b7af2bddb
parentdf2ffaaa2097676cc1ddfc4239f53aef6afc4869
locking: hide share_mode_lock definition

This makes "struct share_mode_lock" an opaque data structure opened up
only to the code in locking/. This makes it much safer to modify the
data structure with defined accessor functions in share_mode_lock.c.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 10 21:12:48 UTC 2020 on sn-devel-184
source3/locking/locking.c
source3/locking/share_mode_lock.c
source3/locking/share_mode_lock.h
source3/locking/share_mode_lock_private.h [new file with mode: 0644]