s3-proto: remove duplicate prototypes.
authorGünther Deschner <gd@samba.org>
Fri, 29 Apr 2011 14:20:27 +0000 (16:20 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 29 Apr 2011 19:01:05 +0000 (21:01 +0200)
Guenther

source3/include/proto.h
source3/lib/netapi/netapi_private.h
source3/librpc/rpc/dcerpc_ep.c
source3/rpc_client/cli_winreg_int.h
source3/rpc_server/rpc_ncacn_np.h
source3/smbd/lanman.c

index 215fa015c48d568fd08e3030855e48929cd5c7f0..948c24de42af7ddd1553a7b4379ed32f49f37b0c 100644 (file)
@@ -2619,34 +2619,6 @@ void set_server_role(void);
 uint32 get_int_param( const char* param );
 char* get_string_param( const char* param );
 
-/* The following definitions come from rpc_server/rpc_ncacn_np.c  */
-struct auth_serversupplied_info;
-struct pipes_struct *make_internal_rpc_pipe_p(TALLOC_CTX *mem_ctx,
-                                             const struct ndr_syntax_id *syntax,
-                                             struct client_address *client_id,
-                                             const struct auth_serversupplied_info *session_info,
-                                             struct messaging_context *msg_ctx);
-struct dcerpc_binding_handle;
-struct ndr_interface_table;
-NTSTATUS rpcint_binding_handle(TALLOC_CTX *mem_ctx,
-                              const struct ndr_interface_table *ndr_table,
-                              struct client_address *client_id,
-                              const struct auth_serversupplied_info *session_info,
-                              struct messaging_context *msg_ctx,
-                              struct dcerpc_binding_handle **binding_handle);
-NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx,
-                               const struct ndr_syntax_id *abstract_syntax,
-                               const struct auth_serversupplied_info *serversupplied_info,
-                               struct client_address *client_id,
-                               struct messaging_context *msg_ctx,
-                               struct rpc_pipe_client **presult);
-NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx,
-                                const struct ndr_syntax_id *syntax,
-                                const struct auth_serversupplied_info *session_info,
-                                struct client_address *client_id,
-                                struct messaging_context *msg_ctx,
-                                struct rpc_pipe_client **cli_pipe);
-
 /* The following definitions come from rpc_server/srv_rpc_register.c  */
 
 struct rpc_srv_callbacks {
@@ -2656,6 +2628,8 @@ struct rpc_srv_callbacks {
 };
 
 struct api_struct;
+struct ndr_interface_table;
+struct pipes_struct;
 NTSTATUS rpc_srv_register(int version, const char *clnt,
                          const char *srv,
                          const struct ndr_interface_table *iface,
index 7559c615647fe6b280400e106c7e08a447d24bba..349287b9e9676f565fd4585bcca63b9bdf106234 100644 (file)
@@ -29,6 +29,8 @@
        } \
        return fn ## _r(ctx, r);
 
+struct dcerpc_binding_handle;
+
 struct libnetapi_private_ctx {
        struct {
                const char *domain_name;
index 76f7e91fb0518e9fb5083959a0e1c64a710e29e5..5ed71857bc3ab157d792422f0f6fde061eb23c71 100644 (file)
@@ -23,6 +23,7 @@
 #include "../librpc/gen_ndr/ndr_epmapper_c.h"
 #include "rpc_client/cli_pipe.h"
 #include "auth.h"
+#include "rpc_server/rpc_ncacn_np.h"
 
 #define EPM_MAX_ANNOTATION_SIZE 64
 
index f175c17f5c90364ae7b15455f2f0c196a53e3281..6e9d07f95ccf3d4297efc924219f1ffbd2121005 100644 (file)
@@ -23,6 +23,7 @@
 #define CLI_WINREG_INT_H
 
 struct auth_serversupplied_info;
+struct dcerpc_binding_handle;
 
 /**
  * @brief Connect to the interal winreg server and open the given key.
index 7c8619b46db804d277130e1fd8ebb6f4d8e615fc..bff7c4f0489cc10e0e8db323f60945a2de684ee2 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef _RPC_NCACN_NP_H_
 #define _RPC_NCACN_NP_H_
 
+struct dcerpc_binding_handle;
+
 struct np_proxy_state {
        uint16_t file_type;
        uint16_t device_state;
@@ -57,5 +59,4 @@ NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx,
                                 struct client_address *client_id,
                                 struct messaging_context *msg_ctx,
                                 struct rpc_pipe_client **cli_pipe);
-
 #endif /* _RPC_NCACN_NP_H_ */
index 9885525be589c50bac4eb9fab72bb93288a33d9d..79737b01b5447c115988badecab782a3f93941be 100644 (file)
@@ -42,6 +42,7 @@
 #include "printing.h"
 #include "passdb/machine_sid.h"
 #include "auth.h"
+#include "rpc_server/rpc_ncacn_np.h"
 
 #ifdef CHECK_TYPES
 #undef CHECK_TYPES