s4:s3compat Provide a way to get at the Samba4 lp_ctx in Samba3.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 5 May 2010 02:45:39 +0000 (12:45 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 3 Jun 2010 01:12:33 +0000 (11:12 +1000)
Andrew Bartlett

source4/s3compat/s3_smbd.c
source4/s3compat/s3replace.c
source4/s3compat/s3replace_public.h [new file with mode: 0644]

index caf66761c4cc3e20f5dc7966fb56c7d7521053c5..356f458bdd0b4b53c49b53a8d7e0f902a6bd5e10 100644 (file)
@@ -32,6 +32,8 @@
 #include "smbd/process_model.h"
 #include "tevent/tevent.h"
 #include "s3compat.h"
+#include "s3replace.h"
+#include "s3replace_public.h"
 
 /*
   initialise a server_context from a open socket and register a event handler
index 80b0e266e2d03b1b9ea20ee81e0fa4a3856798e3..f27ac979ef8f536878ec27b276d3b7444543d220 100644 (file)
@@ -43,12 +43,12 @@ krb5_realm *krb5_princ_realm(krb5_context context, krb5_principal principal)
 
 static struct loadparm_context *s3replace_lp_ctx;
 
-void s3replace_set_lp_ctx(struct loadparm_context *lp_ctx)
+_PUBLIC_ void s3replace_set_lp_ctx(struct loadparm_context *lp_ctx)
 {
        s3replace_lp_ctx = lp_ctx;
 }
 
-struct loadparm_context *s3replace_get_lp_ctx(void)
+_PUBLIC_ struct loadparm_context *s3replace_get_lp_ctx(void)
 {
        return s3replace_lp_ctx;
 }
diff --git a/source4/s3compat/s3replace_public.h b/source4/s3compat/s3replace_public.h
new file mode 100644 (file)
index 0000000..b009f59
--- /dev/null
@@ -0,0 +1,4 @@
+
+struct loadparm_context;
+_PUBLIC_ void s3replace_set_lp_ctx(struct loadparm_context *lp_ctx);
+_PUBLIC_ struct loadparm_context *s3replace_get_lp_ctx(void);