rpc_server: Give lsasd its header file
authorVolker Lendecke <vl@samba.org>
Fri, 15 Mar 2019 08:40:21 +0000 (09:40 +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/lsasd.c
source3/rpc_server/lsasd.h [new file with mode: 0644]
source3/smbd/server.c

index 4b9403036de91c3fbce6426e9d0cf54d5fd290a2..037b477168a8c43ba36cb7465d94ca3fc2d7b1c5 100644 (file)
@@ -38,6 +38,7 @@
 #include "librpc/gen_ndr/srv_lsa.h"
 #include "librpc/gen_ndr/srv_samr.h"
 #include "librpc/gen_ndr/srv_netlogon.h"
+#include "rpc_server/lsasd.h"
 
 #define DAEMON_NAME "lsasd"
 #define LSASD_MAX_SOCKETS 64
@@ -56,9 +57,6 @@ static struct pf_daemon_config default_pf_lsasd_cfg = {
 };
 static struct pf_daemon_config pf_lsasd_cfg = { 0 };
 
-void start_lsasd(struct tevent_context *ev_ctx,
-                struct messaging_context *msg_ctx);
-
 static void lsasd_reopen_logs(int child_id)
 {
        char *lfile = lp_logfile(talloc_tos());
diff --git a/source3/rpc_server/lsasd.h b/source3/rpc_server/lsasd.h
new file mode 100644 (file)
index 0000000..0d261dd
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *
+ *  LSASD 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_LSASD_H__
+#define __RPC_SERVER_LSASD_H__
+
+#include "replace.h"
+#include "messages.h"
+
+void start_lsasd(struct tevent_context *ev_ctx,
+                struct messaging_context *msg_ctx);
+
+#endif
index 086991e6c8862e93e45ac5a11413573f8babb2cf..9b7926912f7a7b70fe04d31924a074343751c716 100644 (file)
@@ -55,6 +55,7 @@
 #include "cleanupdb.h"
 #include "g_lock.h"
 #include "rpc_server/epmd.h"
+#include "rpc_server/lsasd.h"
 
 #ifdef CLUSTER_SUPPORT
 #include "ctdb_protocol.h"
@@ -94,9 +95,6 @@ struct smbd_child_pid {
        pid_t pid;
 };
 
-extern void start_lsasd(struct tevent_context *ev_ctx,
-                       struct messaging_context *msg_ctx);
-
 extern void start_fssd(struct tevent_context *ev_ctx,
                       struct messaging_context *msg_ctx);