smbd: Move "struct share_mode_lock" to share_mode_lock.h
authorVolker Lendecke <vl@samba.org>
Wed, 4 Nov 2020 10:34:54 +0000 (11:34 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Nov 2020 19:49:34 +0000 (19:49 +0000)
share_mode_lock.c is where it's created

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/locking.h
source3/locking/share_mode_lock.h

index 1aad6626f34c73efed2e13037efc24e0ae2164d4..3629d86c556f48d40f30b510772aee3368d1b93f 100644 (file)
@@ -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_ */
index 734db6fd6f409d3efd845d1b93563fb2df7c5d36..f2f35d994872de5230308e8b86083ea4ff9eb344 100644 (file)
 #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);