s3/rpc_server: remove unnecessary srv_fss_agent.h header
authorDavid Disseldorp <ddiss@samba.org>
Thu, 28 May 2020 16:40:26 +0000 (18:40 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 3 Jun 2020 03:57:12 +0000 (03:57 +0000)
The srv_fssa_start() / _cleanup() functions are called via the
DCESRV_INTERFACE_FILESERVERVSSAGENT_INIT / SHUTDOWN_SERVER hooks,
so needn't be public.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Reviewed-by: Samuel Cabrero <scabrero@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Jun  3 03:57:12 UTC 2020 on sn-devel-184

source3/rpc_server/fss/srv_fss_agent.c
source3/rpc_server/fss/srv_fss_agent.h [deleted file]
source3/rpc_server/fssd.c

index 9a15c419ac71e6bb75662c949c00b8ec19594034..0cc3a5d0fbb37afb27b2b0a1155b3c16c9724140 100644 (file)
@@ -32,7 +32,6 @@
 #include "librpc/gen_ndr/ndr_fsrvp.h"
 #include "rpc_server/rpc_server.h"
 #include "srv_fss_private.h"
-#include "srv_fss_agent.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
@@ -388,14 +387,14 @@ static struct fss_sc_smap *sc_smap_lookup(struct fss_sc_smap *smaps_head,
        return NULL;
 }
 
-void srv_fssa_cleanup(void)
+static void srv_fssa_cleanup(void)
 {
        talloc_free(fss_global.db_path);
        talloc_free(fss_global.mem_ctx);
        ZERO_STRUCT(fss_global);
 }
 
-NTSTATUS srv_fssa_start(struct messaging_context *msg_ctx)
+static NTSTATUS srv_fssa_start(struct messaging_context *msg_ctx)
 {
        NTSTATUS status;
        fss_global.mem_ctx = talloc_named_const(NULL, 0,
@@ -1733,7 +1732,6 @@ static NTSTATUS FileServerVssAgent__op_shutdown_server(
 #define DCESRV_INTERFACE_FILESERVERVSSAGENT_SHUTDOWN_SERVER \
        fileservervssagent_shutdown_server
 
-
 static NTSTATUS fileservervssagent_shutdown_server(
                struct dcesrv_context *dce_ctx,
                const struct dcesrv_endpoint_server *ep_server)
diff --git a/source3/rpc_server/fss/srv_fss_agent.h b/source3/rpc_server/fss/srv_fss_agent.h
deleted file mode 100644 (file)
index f44a915..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * File Server Remote VSS Protocol (FSRVP) server
- *
- * Copyright (C) David Disseldorp      2012-2015
- *
- * 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 _SRV_FSS_AGENT_H_
-#define _SRV_FSS_AGENT_H_
-
-NTSTATUS srv_fssa_start(struct messaging_context *msg_ctx);
-void srv_fssa_cleanup(void);
-
-#endif /*_SRV_FSS_AGENT_H_ */
index 3c8ae01b424d68f7331757dd55b20cb230a69f2c..eaec70d230f8f05e09b51b39043499c38acbdeb5 100644 (file)
@@ -33,7 +33,6 @@
 #include "rpc_server/rpc_server.h"
 #include "rpc_server/rpc_service_setup.h"
 #include "rpc_server/rpc_sock_helper.h"
-#include "rpc_server/fss/srv_fss_agent.h"
 #include "rpc_server/fssd.h"
 
 #undef DBGC_CLASS