From: Stefan Metzmacher Date: Thu, 19 Sep 2024 04:43:14 +0000 (+0200) Subject: s3:rpc_client: make most of rpc_pipe_client internal struct members X-Git-Tag: samba-4.21.7~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e02cf063ac6e13fbd462d2015e9d04ba4bc0670;p=thirdparty%2Fsamba.git s3:rpc_client: make most of rpc_pipe_client internal struct members Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme (cherry picked from commit ae88941c8a2e4e9c7d0deb9c39dcbb2f9fab0ebb) --- diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index c1b7930fe9e..b2588da57ca 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -19,6 +19,8 @@ * along with this program; if not, see . */ +#define SOURCE3_LIBRPC_INTERNALS 1 + #include "includes.h" #include "libsmb/namequery.h" #include "../lib/util/tevent_ntstatus.h" diff --git a/source3/rpc_client/rpc_client.h b/source3/rpc_client/rpc_client.h index b1c3db52451..84422188a49 100644 --- a/source3/rpc_client/rpc_client.h +++ b/source3/rpc_client/rpc_client.h @@ -29,14 +29,29 @@ #include "../librpc/ndr/libndr.h" #include "rpc_client/rpc_transport.h" +#ifdef SOURCE3_LIBRPC_INTERNALS +#define SOURCE3_LIBRPC_INTERNALS_BEGIN +#define SOURCE3_LIBRPC_INTERNALS_END +#else /* SOURCE3_LIBRPC_INTERNALS */ +#define SOURCE3_LIBRPC_INTERNALS_BEGIN struct { +#define SOURCE3_LIBRPC_INTERNALS_END } internal; +#endif /* not SOURCE3_LIBRPC_INTERNALS */ + struct dcerpc_binding_handle; struct rpc_pipe_client { struct rpc_pipe_client *prev, *next; + char *printer_username; + char *desthost; + char *srv_name_slash; + + struct dcerpc_binding_handle *binding_handle; + + SOURCE3_LIBRPC_INTERNALS_BEGIN + DATA_BLOB transport_session_key; struct rpc_cli_transport *transport; - struct dcerpc_binding_handle *binding_handle; /* * This is per connection @@ -55,13 +70,11 @@ struct rpc_pipe_client { struct ndr_syntax_id transfer_syntax; bool verified_pcontext; - char *printer_username; - char *desthost; - char *srv_name_slash; - uint16_t max_xmit_frag; struct pipe_auth_data *auth; + + SOURCE3_LIBRPC_INTERNALS_END; }; #endif /* _RPC_CLIENT_H */