From: Volker Lendecke Date: Fri, 15 Mar 2019 08:36:35 +0000 (+0100) Subject: rpc_server: Give epmd its header file X-Git-Tag: talloc-2.2.0~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38f780aedfc3942c8f8356878a20f7c68d9182ef;p=thirdparty%2Fsamba.git rpc_server: Give epmd its header file Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/rpc_server/epmd.c b/source3/rpc_server/epmd.c index 0b94a1cf4ef..db0dcae4222 100644 --- a/source3/rpc_server/epmd.c +++ b/source3/rpc_server/epmd.c @@ -29,12 +29,10 @@ #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 index 00000000000..c08ca0978bf --- /dev/null +++ b/source3/rpc_server/epmd.h @@ -0,0 +1,31 @@ +/* + * Unix SMB/CIFS implementation. + * + * EPMD header file + * + * Copyright (c) 2018 Volker Lendecke + * + * 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 . + */ + +#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 diff --git a/source3/smbd/server.c b/source3/smbd/server.c index f6eabb9378c..086991e6c88 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -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);