summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-09-05 14:35:55 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-05 17:59:47 +0200
commit3e8c665465f0fa650f5f5193206e109200ea7795 (patch)
treea677f811ddb2ad9c41e09e3e7c926b05cd6cb2da /source3/printing
parent303962e3708266810996cde496a6f87b7b4c4bc6 (diff)
downloadsamba-3e8c665465f0fa650f5f5193206e109200ea7795.tar.gz
samba-3e8c665465f0fa650f5f5193206e109200ea7795.tar.bz2
samba-3e8c665465f0fa650f5f5193206e109200ea7795.zip
s3-smbd: Rename reload_printers() and add documentation.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Sep 5 17:59:47 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/queue_process.c4
-rw-r--r--source3/printing/spoolssd.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/queue_process.c b/source3/printing/queue_process.c
index bd26b02031..7b2972d2c0 100644
--- a/source3/printing/queue_process.c
+++ b/source3/printing/queue_process.c
@@ -339,7 +339,7 @@ bool printing_subsystem_init(struct tevent_context *ev_ctx,
ret = printing_subsystem_queue_tasks(ev_ctx, msg_ctx);
/* Publish nt printers, this requires a working winreg pipe */
- pcap_cache_reload(ev_ctx, msg_ctx, &reload_printers);
+ pcap_cache_reload(ev_ctx, msg_ctx, &delete_and_reload_printers);
return ret;
}
@@ -368,5 +368,5 @@ void printing_subsystem_update(struct tevent_context *ev_ctx,
return;
}
- pcap_cache_reload(ev_ctx, msg_ctx, &reload_printers);
+ pcap_cache_reload(ev_ctx, msg_ctx, &delete_and_reload_printers);
}
diff --git a/source3/printing/spoolssd.c b/source3/printing/spoolssd.c
index 63b3f80cff..5ea14c9f7a 100644
--- a/source3/printing/spoolssd.c
+++ b/source3/printing/spoolssd.c
@@ -131,7 +131,7 @@ static void update_pcap(struct tevent_context *ev_ctx,
struct messaging_context *msg_ctx)
{
change_to_root_user();
- reload_printers(ev_ctx, msg_ctx);
+ delete_and_reload_printers(ev_ctx, msg_ctx);
}
static void pcap_updated(struct messaging_context *msg,