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

index 79f22cae59394959467f0fe4d3e4baf16ad62e1f..4a15a5fe0e8b29d100d192b43c7b1d42ca74edfc 100644 (file)
@@ -37,6 +37,7 @@
 
 #include "librpc/gen_ndr/srv_mdssvc.h"
 #include "rpc_server/mdssvc/srv_mdssvc_nt.h"
+#include "rpc_server/mdssd.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/rpc_server/mdssd.h b/source3/rpc_server/mdssd.h
new file mode 100644 (file)
index 0000000..3747dc8
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *
+ *  MDSSD 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_MDSSD_H__
+#define __RPC_SERVER_MDSSD_H__
+
+#include "replace.h"
+#include "messages.h"
+
+void start_mdssd(struct tevent_context *ev_ctx,
+                struct messaging_context *msg_ctx);
+
+#endif
index accb9e470f0d39306949cedf5af0b2a30e21a50e..3a195cfbbb08faaaf51aaa17aa989974e3b48c5a 100644 (file)
@@ -57,6 +57,7 @@
 #include "rpc_server/epmd.h"
 #include "rpc_server/lsasd.h"
 #include "rpc_server/fssd.h"
+#include "rpc_server/mdssd.h"
 
 #ifdef CLUSTER_SUPPORT
 #include "ctdb_protocol.h"
@@ -96,9 +97,6 @@ struct smbd_child_pid {
        pid_t pid;
 };
 
-extern void start_mdssd(struct tevent_context *ev_ctx,
-                       struct messaging_context *msg_ctx);
-
 /*******************************************************************
  What to do when smb.conf is updated.
  ********************************************************************/