s3-proto: move rpc_srv_register protos and structs to town headerfile.
authorGünther Deschner <gd@samba.org>
Fri, 29 Apr 2011 20:32:12 +0000 (22:32 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 2 May 2011 13:03:43 +0000 (15:03 +0200)
Guenther

source3/include/ntdomain.h
source3/include/proto.h
source3/printing/spoolssd.c
source3/rpc_server/epmd.c
source3/rpc_server/rpc_ep_setup.c
source3/rpc_server/rpc_ep_setup.h
source3/rpc_server/rpc_ncacn_np.h
source3/rpc_server/srv_pipe_register.c
source3/rpc_server/srv_pipe_register.h [new file with mode: 0644]

index 9cd00da21a7dc4e1a30022ac8204973afab31629..2c5fa2b6694cbfb8df48412ba9b4c3de0d2d3449 100644 (file)
@@ -234,5 +234,6 @@ void *_policy_handle_find(struct pipes_struct *p,
        (_type *)_policy_handle_find((_p), (_hnd), (_access_required), \
                                     (_access_granted), #_type, __location__, (_pstatus))
 
+#include "rpc_server/srv_pipe_register.h"
 
 #endif /* _NT_DOMAIN_H */
index c296487eac853ea16015edb75443c9a26b214935..5ff1c056ceb1fedb9fc2ff68c452d38df2eb4f34 100644 (file)
@@ -2620,27 +2620,10 @@ 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/srv_rpc_register.c  */
-
-struct rpc_srv_callbacks {
-       bool (*init)(void *private_data);
-       bool (*shutdown)(void *private_data);
-       void *private_data;
-};
-
-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,
-                         const struct api_struct *cmds, int size,
-                         const struct rpc_srv_callbacks *rpc_srv_cb);
-
-NTSTATUS rpc_srv_unregister(const struct ndr_interface_table *iface);
-
 /* The following definitions come from rpc_server/srv_pipe.c  */
 struct ncacn_packet;
+struct api_struct;
+struct pipes_struct;
 bool create_next_pdu(struct pipes_struct *p);
 bool api_pipe_bind_auth3(struct pipes_struct *p, struct ncacn_packet *pkt);
 bool setup_fault_pdu(struct pipes_struct *p, NTSTATUS status);
index 340bf0a5f144722db62d552db3bacbf9a6b79b77..11d2d25c3b5825b45896275accf19bb8bb300e62 100644 (file)
@@ -28,6 +28,7 @@
 #include "librpc/gen_ndr/srv_spoolss.h"
 #include "rpc_server/rpc_server.h"
 #include "rpc_server/rpc_ep_setup.h"
+#include "rpc_server/srv_pipe_register.h"
 
 #define SPOOLSS_PIPE_NAME "spoolss"
 #define DAEMON_NAME "spoolssd"
index 5e82b276fd26489c8516759fbced6b3344bf82ef..d11760c29b95864a921a9e9ed137fec0eac15949 100644 (file)
@@ -25,6 +25,7 @@
 #include "../librpc/gen_ndr/srv_epmapper.h"
 #include "rpc_server/rpc_server.h"
 #include "rpc_server/epmapper/srv_epmapper.h"
+#include "rpc_server/srv_pipe_register.h"
 #include "messages.h"
 
 #define DAEMON_NAME "epmd"
index d517bb88516602596a3831f563b61088309c24f7..fd1297cc0c94085ca9af809c70361e0ed31bab32 100644 (file)
@@ -46,6 +46,7 @@
 
 #include "rpc_server/rpc_ep_setup.h"
 #include "rpc_server/rpc_server.h"
+#include "rpc_server/srv_pipe_register.h"
 #include "rpc_server/epmapper/srv_epmapper.h"
 
 struct dcesrv_ep_context {
index b96de36b16e365db12d93a9996c56edcf1996544..57b06abb39f9fd64baea45e48d7bac2bb85c5963 100644 (file)
@@ -22,6 +22,8 @@
 #ifndef _SMBD_RPC_CALLBACKS_H
 #define _SMBD_RPC_CALLBACKS_H
 
+struct ndr_interface_table;
+
 /**
  * @brief Register an endpoint at the endpoint mapper.
  *
index 75a9f4008786d9e229e3a2dbdb9ce21bd65f6240..09feaa9f4a7f28472bfe65e74e39622cb476687f 100644 (file)
@@ -21,6 +21,7 @@
 #define _RPC_NCACN_NP_H_
 
 struct dcerpc_binding_handle;
+struct ndr_interface_table;
 
 struct np_proxy_state {
        uint16_t file_type;
index a6d654277ed53e94f8f4d2f95638bdf14d3ccb05..69d3ed198a0d246ce401a3cd1bf1ce2f5495124d 100644 (file)
@@ -20,6 +20,7 @@
 #include "includes.h"
 #include "librpc/rpc/dcerpc.h"
 #include "srv_pipe_internal.h"
+#include "rpc_server/srv_pipe_register.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/rpc_server/srv_pipe_register.h b/source3/rpc_server/srv_pipe_register.h
new file mode 100644 (file)
index 0000000..b1b454e
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  RPC Pipe client / server routines
+ *  Almost completely rewritten by (C) Jeremy Allison 2005 - 2010
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 3 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _RPC_SERVER_SRV_PIPE_REGISTER_H_
+#define _RPC_SERVER_SRV_PIPE_REGISTER_H_
+
+struct rpc_srv_callbacks {
+       bool (*init)(void *private_data);
+       bool (*shutdown)(void *private_data);
+       void *private_data;
+};
+
+/* The following definitions come from rpc_server/srv_rpc_register.c  */
+
+NTSTATUS rpc_srv_register(int version, const char *clnt,
+                         const char *srv,
+                         const struct ndr_interface_table *iface,
+                         const struct api_struct *cmds, int size,
+                         const struct rpc_srv_callbacks *rpc_srv_cb);
+
+NTSTATUS rpc_srv_unregister(const struct ndr_interface_table *iface);
+
+#endif /* _RPC_SERVER_SRV_PIPE_REGISTER_H_ */