From 3af5838096872039ac201385763f1e4c0fafb034 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 31 Jan 2007 14:28:08 +0000 Subject: r21090: Add some helper routines (This used to be commit 985dde8ed0a7e6da5adf9c55654a4fd362b22acb) --- source3/smbd/server.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'source3/smbd/server.c') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index dcb685511bf..ab43bcb66f0 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -71,6 +71,17 @@ struct event_context *smbd_event_context(void) return ctx; } +struct messaging_context *smbd_messaging_context(void) +{ + static struct messaging_context *ctx; + + if (!ctx && !(ctx = messaging_init(NULL, server_id_self(), + smbd_event_context()))) { + smb_panic("Could not init smbd messaging context\n"); + } + return ctx; +} + /******************************************************************* What to do when smb.conf is updated. ********************************************************************/ -- cgit