Skip to content

Commit

Permalink
lib: Remove idtree from samba_util.h
Browse files Browse the repository at this point in the history
No need to recompile the world when only a few files need this.

Signed-off-by: Volker Lendecke <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
vlendec authored and jrasamba committed Jan 10, 2023
1 parent 743df90 commit b73ecb2
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions examples/fuse/clifuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions lib/util/samba_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/**
Expand Down
1 change: 1 addition & 0 deletions lib/util/tests/idtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions libcli/cldap/cldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions libcli/nbt/nbtsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions librpc/rpc/dcesrv_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions source3/auth/auth_samba4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions source3/libsmb/cli_smb2_fnum.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions source3/rpc_server/rpc_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions source4/lib/messaging/messaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source4/nbt_server/interfaces.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions source4/ntvfs/posix/pvfs_search.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 1 addition & 0 deletions source4/ntvfs/posix/vfs_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions source4/rpc_server/dcerpc_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source4/smb_server/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include "includes.h"
#include "smb_server/smb_server.h"

#include "lib/util/idtree.h"

/****************************************************************************
init the handle structures
Expand Down
2 changes: 1 addition & 1 deletion source4/smb_server/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "includes.h"
#include "smb_server/smb_server.h"

#include "lib/util/idtree_random.h"

/*
* init the sessions structures
Expand Down
2 changes: 1 addition & 1 deletion source4/smb_server/smb2/receive.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions source4/smb_server/tcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b73ecb2

Please sign in to comment.