diff options
author | Günther Deschner <gd@samba.org> | 2011-04-29 23:47:25 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2011-05-17 09:19:03 +0200 |
commit | 2ba58ddc3f7b2e67218c643a3e78859bd0c5bb8f (patch) | |
tree | 272988eca33928db79a34abe893877ef17841cd7 | |
parent | 3e013d493c0cf30555ed0eb8528b614cfb2df43b (diff) | |
download | samba-2ba58ddc3f7b2e67218c643a3e78859bd0c5bb8f.tar.gz samba-2ba58ddc3f7b2e67218c643a3e78859bd0c5bb8f.tar.xz samba-2ba58ddc3f7b2e67218c643a3e78859bd0c5bb8f.zip |
s3-proto: move remaining spoolss protos to own header file.
Guenther
(cherry picked from commit c233c21425a183dd1124329fdbca13ab92cc6d6a)
(cherry picked from commit 8143106d7290aa4ae713bc04603b8b589bc86346)
-rw-r--r-- | source3/include/proto.h | 10 | ||||
-rw-r--r-- | source3/printing/nt_printing.c | 1 | ||||
-rw-r--r-- | source3/printing/spoolssd.c | 1 | ||||
-rw-r--r-- | source3/rpc_server/rpc_ep_setup.c | 1 | ||||
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 1 | ||||
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.h | 40 | ||||
-rw-r--r-- | source3/smbd/process.c | 1 |
7 files changed, 45 insertions, 10 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 36134f140a6..0c7a4f843e0 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2662,16 +2662,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 ); diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index a7539f6478f..d74003a7084 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -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 */ diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c index 11d2d25c3b5..4e63dc53c1a 100644 --- a/source3/printing/spoolssd.c +++ b/source3/printing/spoolssd.c @@ -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" diff --git a/source3/rpc_server/rpc_ep_setup.c b/source3/rpc_server/rpc_ep_setup.c index fd1297cc0c9..6a48f8890df 100644 --- a/source3/rpc_server/rpc_ep_setup.c +++ b/source3/rpc_server/rpc_ep_setup.c @@ -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" diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index b4f3e5e32e3..a44c047a9b6 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -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 index 00000000000..d6d141a5e8f --- /dev/null +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.h @@ -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_ */ diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 98de361d75c..169c4595346 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -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; |