summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index b99fd8a514..8f2258bb72 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -5197,6 +5197,18 @@ struct share_params *next_share(struct share_iterator *list)
return result;
}
+struct share_params *next_printer(struct share_iterator *list)
+{
+ struct share_params *result;
+
+ while ((result = next_share(list)) != NULL) {
+ if (lp_print_ok(result->service)) {
+ break;
+ }
+ }
+ return result;
+}
+
/*******************************************************************
A useful volume label function.
********************************************************************/