summaryrefslogtreecommitdiff
path: root/source3/printing/pcap.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-09-20 23:28:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:41 -0500
commitc762908074c45baacde1df04b633e01308030864 (patch)
tree2d564b844bc03e8bba9ba00f61f426ccc4fd8b53 /source3/printing/pcap.c
parent1970294ab3df66d36b713dc8811527ddc8e99bd0 (diff)
downloadsamba-c762908074c45baacde1df04b633e01308030864.tar.gz
samba-c762908074c45baacde1df04b633e01308030864.tar.bz2
samba-c762908074c45baacde1df04b633e01308030864.zip
r10371: Adding iPrint printing backend written by Joel J. Smith @ Novell.
Jeremy. (This used to be commit 155dc2d52a971bfb8d7565c06f3efc637e130b11)
Diffstat (limited to 'source3/printing/pcap.c')
-rw-r--r--source3/printing/pcap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/printing/pcap.c b/source3/printing/pcap.c
index e9d8195366..9b4b5e4f71 100644
--- a/source3/printing/pcap.c
+++ b/source3/printing/pcap.c
@@ -56,6 +56,9 @@
*
* Modified to call CUPS support if printcap name is set to "cups"
* in smb.conf.
+ *
+ * Modified to call iPrint support if printcap name is set to "iprint"
+ * in smb.conf.
*/
#include "includes.h"
@@ -129,6 +132,13 @@ void pcap_cache_reload(void)
}
#endif
+#ifdef HAVE_IPRINT
+ if (strequal(pcap_name, "iprint")) {
+ pcap_reloaded = iprint_cache_reload();
+ goto done;
+ }
+#endif
+
#if defined(SYSV) || defined(HPUX)
if (strequal(pcap_name, "lpstat")) {
pcap_reloaded = sysv_cache_reload();