rpc_server: Give epmd its header file
authorVolker Lendecke <vl@samba.org>
Fri, 15 Mar 2019 08:36:35 +0000 (09:36 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 18 Mar 2019 19:21:22 +0000 (19:21 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/rpc_server/epmd.c
source3/rpc_server/epmd.h [new file with mode: 0644]
source3/smbd/server.c

index 0b94a1cf4efb95c4c1b7c0eb947f161f71f34960..db0dcae42228de847a1f8c0146d7fe0410c09aa3 100644 (file)
 #include "rpc_server/rpc_server.h"
 #include "rpc_server/rpc_sock_helper.h"
 #include "rpc_server/epmapper/srv_epmapper.h"
+#include "rpc_server/epmd.h"
 
 #define DAEMON_NAME "epmd"
 
-void start_epmd(struct tevent_context *ev_ctx,
-               struct messaging_context *msg_ctx);
-
 static void epmd_reopen_logs(void)
 {
        char *lfile = lp_logfile(talloc_tos());
diff --git a/source3/rpc_server/epmd.h b/source3/rpc_server/epmd.h
new file mode 100644 (file)
index 0000000..c08ca09
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *
+ *  EPMD header file
+ *
+ *  Copyright (c) 2018 Volker Lendecke <vl@samba.org>
+ *
+ *  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_EPMD_H__
+#define __RPC_SERVER_EPMD_H__
+
+#include "replace.h"
+#include "messages.h"
+
+void start_epmd(struct tevent_context *ev_ctx,
+               struct messaging_context *msg_ctx);
+
+#endif
index f6eabb9378c976e0b23d2d0dd83558fede37ba2b..086991e6c8862e93e45ac5a11413573f8babb2cf 100644 (file)
@@ -54,6 +54,7 @@
 #include "lib/util/sys_rw.h"
 #include "cleanupdb.h"
 #include "g_lock.h"
+#include "rpc_server/epmd.h"
 
 #ifdef CLUSTER_SUPPORT
 #include "ctdb_protocol.h"
@@ -93,9 +94,6 @@ struct smbd_child_pid {
        pid_t pid;
 };
 
-extern void start_epmd(struct tevent_context *ev_ctx,
-                      struct messaging_context *msg_ctx);
-
 extern void start_lsasd(struct tevent_context *ev_ctx,
                        struct messaging_context *msg_ctx);