From: Volker Lendecke Date: Wed, 4 Nov 2020 10:34:54 +0000 (+0100) Subject: smbd: Move "struct share_mode_lock" to share_mode_lock.h X-Git-Tag: samba-4.14.0rc1~669 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fe1e601c90607062418cafb64cf6c063179ebde;p=thirdparty%2Fsamba.git smbd: Move "struct share_mode_lock" to share_mode_lock.h share_mode_lock.c is where it's created Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/include/locking.h b/source3/include/locking.h index 1aad6626f34..3629d86c556 100644 --- a/source3/include/locking.h +++ b/source3/include/locking.h @@ -71,8 +71,6 @@ struct smbd_lock_element { uint64_t count; }; -struct share_mode_lock { - struct share_mode_data *data; -}; +struct share_mode_lock; #endif /* _LOCKING_H_ */ diff --git a/source3/locking/share_mode_lock.h b/source3/locking/share_mode_lock.h index 734db6fd6f4..f2f35d99487 100644 --- a/source3/locking/share_mode_lock.h +++ b/source3/locking/share_mode_lock.h @@ -16,6 +16,11 @@ #ifndef __LOCKING_SHARE_MODE_LOCK_H__ #define __LOCKING_SHARE_MODE_LOCK_H__ +struct share_mode_data; +struct share_mode_lock { + struct share_mode_data *data; +}; + bool locking_init(void); bool locking_init_readonly(void); bool locking_end(void);