smbd: Move "struct byte_range_lock" definition to brlock.c
authorVolker Lendecke <vl@samba.org>
Tue, 10 Sep 2013 17:42:06 +0000 (19:42 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 11 Sep 2013 06:27:11 +0000 (08:27 +0200)
source3/include/locking.h
source3/locking/brlock.c

index 627908ce74ecef2720c84e0fc15a06de222300c6..97c138aead90386cebb4be73962fe0d2033d2a6e 100644 (file)
@@ -47,15 +47,7 @@ struct files_struct;
 
 #include "lib/file_id.h"
 
-struct byte_range_lock {
-       struct files_struct *fsp;
-       unsigned int num_locks;
-       bool modified;
-       bool read_only;
-       struct file_id key;
-       struct lock_struct *lock_data;
-       struct db_record *record;
-};
+struct byte_range_lock;
 
 /* Internal structure in brlock.tdb.
    The data in brlock records is an unsorted linear array of these
index cc5d7a8ae0b898700b6f7e229f9767eea9a2c56f..1f4c7163919d7ae9cbe04e348181a70e1642030e 100644 (file)
 
 static struct db_context *brlock_db;
 
+struct byte_range_lock {
+       struct files_struct *fsp;
+       unsigned int num_locks;
+       bool modified;
+       bool read_only;
+       struct file_id key;
+       struct lock_struct *lock_data;
+       struct db_record *record;
+};
+
 /****************************************************************************
  Debug info at level 10 for lock struct.
 ****************************************************************************/