s3-proto: move remaining spoolss protos to own header file.
authorGünther Deschner <gd@samba.org>
Fri, 29 Apr 2011 21:47:25 +0000 (23:47 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 2 May 2011 13:03:43 +0000 (15:03 +0200)
Guenther

source3/include/proto.h
source3/printing/nt_printing.c
source3/printing/spoolssd.c
source3/rpc_server/rpc_ep_setup.c
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/rpc_server/spoolss/srv_spoolss_nt.h [new file with mode: 0644]
source3/smbd/process.c

index cec11ad7eb7e8fa7ba26c44b49693d40671cfc7b..a2751c755813d7a40b8a51df247caf24ecfa9f20 100644 (file)
@@ -2630,16 +2630,6 @@ bool api_pipe_bind_auth3(struct pipes_struct *p, struct ncacn_packet *pkt);
 bool setup_fault_pdu(struct pipes_struct *p, NTSTATUS status);
 bool is_known_pipename(const char *cli_filename, struct ndr_syntax_id *syntax);
 
-/* The following definitions come from rpc_server/srv_spoolss_nt.c  */
-void srv_spoolss_cleanup(void);
-
-void do_drv_upgrade_printer(struct messaging_context *msg,
-                           void *private_data,
-                           uint32_t msg_type,
-                           struct server_id server_id,
-                           DATA_BLOB *data);
-void update_monitored_printq_cache(struct messaging_context *msg_ctx);
-
 /* The following definitions come from rpc_server/srv_svcctl_nt.c  */
 
 bool init_service_op_table( void );
index a7539f6478fa4ee239454edf88266e243062717d..d74003a7084c13924368271412b96ac20b0af776 100644 (file)
@@ -37,6 +37,7 @@
 #include "auth.h"
 #include "messages.h"
 #include "ntdomain.h"
+#include "rpc_server/spoolss/srv_spoolss_nt.h"
 
 /* Map generic permissions to printer object specific permissions */
 
index 11d2d25c3b5825b45896275accf19bb8bb300e62..4e63dc53c1a59c0efae83ca1c91ee80245cd980d 100644 (file)
@@ -29,6 +29,7 @@
 #include "rpc_server/rpc_server.h"
 #include "rpc_server/rpc_ep_setup.h"
 #include "rpc_server/srv_pipe_register.h"
+#include "rpc_server/spoolss/srv_spoolss_nt.h"
 
 #define SPOOLSS_PIPE_NAME "spoolss"
 #define DAEMON_NAME "spoolssd"
index fd1297cc0c94085ca9af809c70361e0ed31bab32..6a48f8890df8ce60d477030bfe2099862ba3948c 100644 (file)
@@ -41,6 +41,7 @@
 #include "printing/nt_printing_migrate.h"
 #include "rpc_server/eventlog/srv_eventlog_reg.h"
 #include "rpc_server/svcctl/srv_svcctl_reg.h"
+#include "rpc_server/spoolss/srv_spoolss_nt.h"
 
 #include "librpc/rpc/dcerpc_ep.h"
 
index 312f50965b7ac125a837fc4a7c6f75d371d183a2..15630ff93d9e1e86f63cf3e5c6aefbec345b9c9c 100644 (file)
@@ -49,6 +49,7 @@
 #include "auth.h"
 #include "messages.h"
 #include "ntdomain.h"
+#include "rpc_server/spoolss/srv_spoolss_nt.h"
 
 /* macros stolen from s4 spoolss server */
 #define SPOOLSS_BUFFER_UNION(fn,info,level) \
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.h b/source3/rpc_server/spoolss/srv_spoolss_nt.h
new file mode 100644 (file)
index 0000000..d6d141a
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ *  Unix SMB/CIFS implementation.
+ *  RPC Pipe client / server routines
+ *  Copyright (C) Andrew Tridgell              1992-2000,
+ *  Copyright (C) Luke Kenneth Casson Leighton 1996-2000,
+ *  Copyright (C) Jean François Micouleau      1998-2000,
+ *  Copyright (C) Jeremy Allison               2001-2002,
+ *  Copyright (C) Gerald Carter                       2000-2004,
+ *  Copyright (C) Tim Potter                   2001-2002.
+ *  Copyright (C) Guenther Deschner            2009-2010.
+ *  Copyright (C) Andreas Schneider            2010.
+ *
+ *  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_SPOOLSS_SRV_SPOOLSS_NT_H_
+#define _RPC_SERVER_SPOOLSS_SRV_SPOOLSS_NT_H_
+
+/* The following definitions come from rpc_server/srv_spoolss_nt.c  */
+void srv_spoolss_cleanup(void);
+
+void do_drv_upgrade_printer(struct messaging_context *msg,
+                           void *private_data,
+                           uint32_t msg_type,
+                           struct server_id server_id,
+                           DATA_BLOB *data);
+void update_monitored_printq_cache(struct messaging_context *msg_ctx);
+
+#endif /* _RPC_SERVER_SPOOLSS_SRV_SPOOLSS_NT_H_ */
index 10632696c737f215658ec252405b59c705858785..c17ff7b5acada174f48ef28859f57e2f4e55b342 100644 (file)
@@ -33,6 +33,7 @@
 #include "auth.h"
 #include "messages.h"
 #include "smbprofile.h"
+#include "rpc_server/spoolss/srv_spoolss_nt.h"
 
 extern bool global_machine_password_needs_changing;