]> git.samba.org - bbaumbach/samba-autobuild/.git/commitdiff
lib: Remove idtree from samba_util.h
authorVolker Lendecke <vl@samba.org>
Thu, 5 Jan 2023 09:04:23 +0000 (10:04 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jan 2023 00:28:37 +0000 (00:28 +0000)
No need to recompile the world when only a few files need this.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
18 files changed:
examples/fuse/clifuse.c
lib/util/samba_util.h
lib/util/tests/idtree.c
libcli/cldap/cldap.c
libcli/nbt/nbtsocket.c
librpc/rpc/dcesrv_core.c
source3/auth/auth_samba4.c
source3/libsmb/cli_smb2_fnum.c
source3/rpc_server/rpc_server.c
source4/lib/messaging/messaging.c
source4/nbt_server/interfaces.c
source4/ntvfs/posix/pvfs_search.c
source4/ntvfs/posix/vfs_posix.c
source4/rpc_server/dcerpc_server.c
source4/smb_server/handle.c
source4/smb_server/session.c
source4/smb_server/smb2/receive.c
source4/smb_server/tcon.c

index 2d9edad5f47b618cdcc423c877676bc962abdc62..75cb72f7f870dbfd344f1e67a171ade6c0fca21e 100644 (file)
@@ -31,6 +31,7 @@
 #include "libcli/smb/smbXcli_base.h"
 #include "libcli/security/security.h"
 #include "clifuse.h"
+#include "lib/util/idtree.h"
 
 struct mount_state {
        struct tevent_context *ev;
index d8c8522616d723373f9cf03b3d4d63a8e30254b6..4eecfb8a5835e40c98420aaece2870679a2a24a3 100644 (file)
@@ -589,9 +589,6 @@ int ms_fnmatch_protocol(const char *pattern, const char *string, int protocol,
 /** a generic fnmatch function - uses for non-CIFS pattern matching */
 int gen_fnmatch(const char *pattern, const char *string);
 
-#include "idtree.h"
-#include "idtree_random.h"
-
 #include "become_daemon.h"
 
 /**
index f4f7b1130e2ae51dbf7fe78a8cd6064c4a55964e..d54ab2773ff353135220f013d016ccf69496b077 100644 (file)
@@ -22,6 +22,7 @@
 #include "includes.h"
 #include "torture/torture.h"
 #include "torture/local/proto.h"
+#include "lib/util/idtree.h"
 
 static bool torture_local_idtree_simple(struct torture_context *tctx)
 {
index 22a47705d65479e9eb6a329fabc1d423eaa42296..6c2bf86c111780f5f09315eb8432810a6da1a9e7 100644 (file)
@@ -43,6 +43,7 @@
 #include "../librpc/gen_ndr/ndr_nbt.h"
 #include "../lib/util/asn1.h"
 #include "../lib/util/tevent_ntstatus.h"
+#include "lib/util/idtree_random.h"
 
 #undef strcasecmp
 
index 3e0dd493a911238396bbf886fe24ecc47626f9b2..47e73cf2e8d22d496476605c964fc2caa906c2ba 100644 (file)
@@ -27,6 +27,7 @@
 #include "lib/socket/socket.h"
 #include "librpc/gen_ndr/ndr_nbt.h"
 #include "param/param.h"
+#include "lib/util/idtree_random.h"
 
 #define NBT_MAX_REPLIES 1000
 
index 9fd7181290563e070e79d288aa37b3e29be437cf..d287004624869c4db2fcae72aa6a10a491d6a674 100644 (file)
@@ -34,6 +34,7 @@
 #include "librpc/gen_ndr/ndr_dcerpc.h"
 #include "lib/util/tevent_ntstatus.h"
 #include "system/network.h"
+#include "lib/util/idtree_random.h"
 
 /**
  * @file
index 6c017ef4aa30dd9d88200a9c20592cfca7e123a8..dec67a488d71083eaa81b11d99df161002516328 100644 (file)
@@ -29,6 +29,7 @@
 #include "auth/gensec/gensec.h"
 #include "auth/credentials/credentials.h"
 #include "lib/global_contexts.h"
+#include "lib/util/idtree.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_AUTH
index 734c24531d9ea388979bd263d9c6dffae968c461..5852f9177fd3d2e00abf7b30ae35d6463f60cfb7 100644 (file)
@@ -43,6 +43,7 @@
 #include "ntioctl.h"
 #include "librpc/gen_ndr/ndr_quota.h"
 #include "lib/util/string_wrappers.h"
+#include "lib/util/idtree.h"
 
 struct smb2_hnd {
        uint64_t fid_persistent;
index 71be70bf79d733305a9ee646b9f21b9b03608a8a..06fb6bb4472981db5c615850c38c6dc1fbff6f48 100644 (file)
@@ -33,6 +33,7 @@
 #include "auth.h"
 #include "rpc_server/rpc_ncacn_np.h"
 #include "rpc_server/srv_pipe_hnd.h"
+#include "lib/util/idtree_random.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index 3a9dccc1d489efdb559325743ec0630dcae0595f..12054477210b773007d84cd723dcb88001ded3ce 100644 (file)
@@ -40,6 +40,7 @@
 #include "lib/messaging/messages_dgm_ref.h"
 #include "../source3/lib/messages_util.h"
 #include <tdb.h>
+#include "lib/util/idtree.h"
 
 /* change the message version with any incompatible changes in the protocol */
 #define IMESSAGING_VERSION 1
index 93e1497c2aeb5c047b7f4f2b353ed60500172904..b946a1dedf40827236410dd698a834d7d6dccc39 100644 (file)
@@ -30,7 +30,7 @@
 #include "lib/socket/netif.h"
 #include "param/param.h"
 #include "lib/util/util_net.h"
-
+#include "lib/util/idtree.h"
 
 /*
   receive an incoming request and dispatch it to the right place
index f50319b5fad8cd54e73405214920f29997436584..f352a6a474aebc0246c4144296a8557f819bd106 100644 (file)
@@ -26,6 +26,7 @@
 #include "samba/service_stream.h"
 #include "lib/events/events.h"
 #include "../lib/util/dlinklist.h"
+#include "lib/util/idtree.h"
 
 /* place a reasonable limit on old-style searches as clients tend to
    not send search close requests */
index 9f131581762f999fe934f1a0b8b47a14273835dd..cbee8d9738a59795d4f392e24d742fa8d3884b95 100644 (file)
@@ -31,6 +31,7 @@
 #include "libcli/security/security.h"
 #include "lib/events/events.h"
 #include "param/param.h"
+#include "lib/util/idtree.h"
 
 /*
   setup config options for a posix share
index 6ec6f832da2c770a319ffd725d203444b27739a5..13c0f7acb967af596751b8b4a630e5796a951fae 100644 (file)
@@ -33,6 +33,7 @@
 #include "samba/process_model.h"
 #include "lib/util/samba_modules.h"
 #include "lib/util/tevent_ntstatus.h"
+#include "lib/util/idtree_random.h"
 
 /*
   take a reference to an existing association group
index 931f77abc4bc4355e7226363be75f3bddcf50f89..0e715abebac584434b60898e7e6fbd85caca4dd9 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "includes.h"
 #include "smb_server/smb_server.h"
-
+#include "lib/util/idtree.h"
 
 /****************************************************************************
 init the handle structures
index a561b2e7fc41832670f8a855a4cca58cf3392a9c..2effa781e28dcc12331b25a4878599248ab6db9a 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "includes.h"
 #include "smb_server/smb_server.h"
-
+#include "lib/util/idtree_random.h"
 
 /*
  * init the sessions structures
index c4109bfbc2fc07665be20af329769d42c31f8cd5..2d0c377b13e473dbca7921a74cf6af1546225194 100644 (file)
@@ -29,7 +29,7 @@
 #include "ntvfs/ntvfs.h"
 #include "param/param.h"
 #include "auth/auth.h"
-
+#include "lib/util/idtree.h"
 
 /* fill in the bufinfo */
 void smb2srv_setup_bufinfo(struct smb2srv_request *req)
index 8186bba23ef6e96194979605603595ce6ae8eed5..04dc7fe9d86e055b15f24e2ae77661b0a18aaf58 100644 (file)
@@ -24,6 +24,7 @@
 #include "samba/service_stream.h"
 #include "lib/tsocket/tsocket.h"
 #include "ntvfs/ntvfs.h"
+#include "lib/util/idtree_random.h"
 
 /****************************************************************************
 init the tcon structures