]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:global_contexts: add global_messaging_context_raw()
authorStefan Metzmacher <metze@samba.org>
Sat, 18 Jul 2026 10:51:29 +0000 (12:51 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 4 Aug 2026 09:51:32 +0000 (09:51 +0000)
This gets the global context without trying to
create a fresh one.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/global_contexts.c
source3/lib/global_contexts.h

index 4e3bbabfffe86745d7e27cb77b32a48e502f4a1b..bee5a4195fcc6c8d912324a1e6e12ebc96b91235 100644 (file)
@@ -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) {
index 8c5cd096a45e7c0f7fb519c33741cff77a0239b3..574e00484b2b215cfcdd343b66744db0cc864657 100644 (file)
@@ -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);