From: Stefan Metzmacher Date: Sat, 18 Jul 2026 10:51:29 +0000 (+0200) Subject: s3:global_contexts: add global_messaging_context_raw() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d17cae4558ea0096d5ce9782e6ccd9f258b667e9;p=thirdparty%2Fsamba.git s3:global_contexts: add global_messaging_context_raw() This gets the global context without trying to create a fresh one. Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/lib/global_contexts.c b/source3/lib/global_contexts.c index 4e3bbabfffe..bee5a4195fc 100644 --- a/source3/lib/global_contexts.c +++ b/source3/lib/global_contexts.c @@ -51,6 +51,11 @@ void global_event_context_free(void) static struct messaging_context *global_msg_ctx = NULL; +struct messaging_context *global_messaging_context_raw(void) +{ + return global_msg_ctx; +} + struct messaging_context *global_messaging_context(void) { if (global_msg_ctx == NULL) { diff --git a/source3/lib/global_contexts.h b/source3/lib/global_contexts.h index 8c5cd096a45..574e00484b2 100644 --- a/source3/lib/global_contexts.h +++ b/source3/lib/global_contexts.h @@ -25,6 +25,7 @@ struct tevent_context *global_event_context(void); void global_event_context_free(void); struct messaging_context; +struct messaging_context *global_messaging_context_raw(void); struct messaging_context *global_messaging_context(void); void global_messaging_context_free(void);