diff options
author | Andreas Schneider <asn@samba.org> | 2010-06-10 11:48:39 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-06-10 17:30:45 -0400 |
commit | 09627638224759c985f0636c5616b0357c91e450 (patch) | |
tree | c3e0f6849b468a879daf4bac954abe7066cb2716 /source3/printing/notify.c | |
parent | cbda0369a831ed279cec7ff231ad7399af74db39 (diff) | |
download | samba-09627638224759c985f0636c5616b0357c91e450.tar.gz samba-09627638224759c985f0636c5616b0357c91e450.tar.bz2 samba-09627638224759c985f0636c5616b0357c91e450.zip |
s3:misc make use of server_[event/messaging]_context directly
Untangle these functions from smbd specific dependencies so they can be freely
used in multiple servers.
Diffstat (limited to 'source3/printing/notify.c')
-rw-r--r-- | source3/printing/notify.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/notify.c b/source3/printing/notify.c index 33807f72ef..a18b2fd897 100644 --- a/source3/printing/notify.c +++ b/source3/printing/notify.c @@ -232,7 +232,7 @@ static void print_notify_event_send_messages(struct tevent_context *event_ctx, TALLOC_FREE(notify_event); change_to_root_user(); - print_notify_send_messages(smbd_messaging_context(), 0); + print_notify_send_messages(server_messaging_context(), 0); } /********************************************************************** @@ -326,9 +326,9 @@ to notify_queue_head\n", msg->type, msg->field, msg->printer)); DLIST_ADD_END(notify_queue_head, pnqueue, struct notify_queue *); num_messages++; - if ((notify_event == NULL) && (smbd_event_context() != NULL)) { + if ((notify_event == NULL) && (server_event_context() != NULL)) { /* Add an event for 1 second's time to send this queue. */ - notify_event = tevent_add_timer(smbd_event_context(), NULL, + notify_event = tevent_add_timer(server_event_context(), NULL, timeval_current_ofs(1,0), print_notify_event_send_messages, NULL); } |