summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-04-29 23:57:49 +0200
committerKarolin Seeger <kseeger@samba.org>2011-05-17 09:19:06 +0200
commita25215d8815c14bc70a2de7b9835722c19d949df (patch)
tree80386ea8bad69342a5a21fca35a1e0601e80e59a
parent2ba58ddc3f7b2e67218c643a3e78859bd0c5bb8f (diff)
downloadsamba-a25215d8815c14bc70a2de7b9835722c19d949df.tar.gz
samba-a25215d8815c14bc70a2de7b9835722c19d949df.tar.xz
samba-a25215d8815c14bc70a2de7b9835722c19d949df.zip
s3-proto: move remaining srvsvc protos to own header file.
Guenther (cherry picked from commit daa02f34b181a3ec7224e920f787cc677bc3cdf2) (cherry picked from commit 54559a55bd90f18330759b88fc9b2457951ccfdb)
-rw-r--r--source3/include/proto.h5
-rw-r--r--source3/rpc_server/rpc_ep_setup.c1
-rw-r--r--source3/rpc_server/svcctl/srv_svcctl_nt.c1
-rw-r--r--source3/rpc_server/svcctl/srv_svcctl_nt.h33
4 files changed, 35 insertions, 5 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 0c7a4f843e0..851e0d2d061 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2662,11 +2662,6 @@ bool api_pipe_bind_auth3(struct pipes_struct *p, struct ncacn_packet *pkt);
bool setup_fault_pdu(struct pipes_struct *p, NTSTATUS status);
bool is_known_pipename(const char *cli_filename, struct ndr_syntax_id *syntax);
-/* The following definitions come from rpc_server/srv_svcctl_nt.c */
-
-bool init_service_op_table( void );
-bool shutdown_service_op_table(void);
-
/* The following definitions come from lib/server_contexts.c */
struct tevent_context *server_event_context(void);
void server_event_context_free(void);
diff --git a/source3/rpc_server/rpc_ep_setup.c b/source3/rpc_server/rpc_ep_setup.c
index 6a48f8890df..f59f4b535ab 100644
--- a/source3/rpc_server/rpc_ep_setup.c
+++ b/source3/rpc_server/rpc_ep_setup.c
@@ -42,6 +42,7 @@
#include "rpc_server/eventlog/srv_eventlog_reg.h"
#include "rpc_server/svcctl/srv_svcctl_reg.h"
#include "rpc_server/spoolss/srv_spoolss_nt.h"
+#include "rpc_server/svcctl/srv_svcctl_nt.h"
#include "librpc/rpc/dcerpc_ep.h"
diff --git a/source3/rpc_server/svcctl/srv_svcctl_nt.c b/source3/rpc_server/svcctl/srv_svcctl_nt.c
index a4eb282de7c..09e6c006d60 100644
--- a/source3/rpc_server/svcctl/srv_svcctl_nt.c
+++ b/source3/rpc_server/svcctl/srv_svcctl_nt.c
@@ -30,6 +30,7 @@
#include "services/svc_winreg_glue.h"
#include "auth.h"
#include "ntdomain.h"
+#include "rpc_server/svcctl/srv_svcctl_nt.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/rpc_server/svcctl/srv_svcctl_nt.h b/source3/rpc_server/svcctl/srv_svcctl_nt.h
new file mode 100644
index 00000000000..dd049272882
--- /dev/null
+++ b/source3/rpc_server/svcctl/srv_svcctl_nt.h
@@ -0,0 +1,33 @@
+/*
+ * Unix SMB/CIFS implementation.
+ * RPC Pipe client / server routines
+ *
+ * Copyright (C) Marcin Krzysztof Porwit 2005.
+ *
+ * Largely Rewritten (Again) by:
+ * Copyright (C) Gerald (Jerry) Carter 2005.
+ * Copyright (C) Guenther Deschner 2008,2009.
+ *
+ * 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_SVCCTL_SRV_SVCCTL_NT_H_
+#define _RPC_SERVER_SVCCTL_SRV_SVCCTL_NT_H_
+
+/* The following definitions come from rpc_server/srv_svcctl_nt.c */
+
+bool init_service_op_table( void );
+bool shutdown_service_op_table(void);
+
+#endif /* _RPC_SERVER_SVCCTL_SRV_SVCCTL_NT_H_ */