summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-11 00:27:54 +0100
committerGünther Deschner <gd@samba.org>2009-03-13 09:25:24 +0100
commit0174d4d3b2a682710ee4ab15c9af67910de53344 (patch)
tree0f69428d974f5a420c77bd0999869423da5deacd /source3
parenta1a02bfac2e29c9a8da945c767b9b3c5812730f7 (diff)
downloadsamba-0174d4d3b2a682710ee4ab15c9af67910de53344.tar.gz
samba-0174d4d3b2a682710ee4ab15c9af67910de53344.tar.bz2
samba-0174d4d3b2a682710ee4ab15c9af67910de53344.zip
s3-spoolss: add snum_is_shared_printer fn.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 925b15eba9..f323ca9599 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -4590,6 +4590,14 @@ static WERROR construct_printer_info2(TALLOC_CTX *mem_ctx,
}
/********************************************************************
+********************************************************************/
+
+static bool snum_is_shared_printer(int snum)
+{
+ return (lp_browseable(snum) && lp_snum_ok(snum) && lp_print_ok(snum));
+}
+
+/********************************************************************
Spoolss_enumprinters.
********************************************************************/