From 49d5f62b42d821bb8a11b595efb53eb88ec3c570 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 29 Apr 2011 22:32:12 +0200 Subject: s3-proto: move rpc_srv_register protos and structs to town headerfile. Guenther --- source3/include/ntdomain.h | 1 + source3/include/proto.h | 21 ++------------------- 2 files changed, 3 insertions(+), 19 deletions(-) (limited to 'source3/include') diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h index 9cd00da21a..2c5fa2b669 100644 --- a/source3/include/ntdomain.h +++ b/source3/include/ntdomain.h @@ -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 */ diff --git a/source3/include/proto.h b/source3/include/proto.h index c296487eac..5ff1c056ce 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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); -- cgit