Revert making public of the samba-module library.
[mat/samba.git] / source4 / ntvfs / sysdep / sys_lease.c
index 12fd83e8e0ef0bdaec830728ef243cd0f27bbaae..9adb89827422bbd62b59dfbcc4f53c8b3122510c 100644 (file)
@@ -27,6 +27,7 @@
 #include "ntvfs/sysdep/sys_lease.h"
 #include "../lib/util/dlinklist.h"
 #include "param/param.h"
+#include "lib/util/samba_modules.h"
 
 /* list of registered backends */
 static struct sys_lease_ops *backends;
@@ -40,7 +41,7 @@ static uint32_t num_backends;
 _PUBLIC_ struct sys_lease_context *sys_lease_context_create(struct share_config *scfg,
                                                            TALLOC_CTX *mem_ctx,
                                                            struct tevent_context *ev,
-                                                           struct messaging_context *msg,
+                                                           struct imessaging_context *msg,
                                                            sys_lease_send_break_fn break_send)
 {
        struct sys_lease_context *ctx;
@@ -107,15 +108,11 @@ _PUBLIC_ NTSTATUS sys_lease_register(const struct sys_lease_ops *backend)
        return NT_STATUS_OK;
 }
 
-#ifndef STATIC_sys_lease_MODULES 
-#define STATIC_sys_lease_MODULES NULL
-#endif
-
 _PUBLIC_ NTSTATUS sys_lease_init(void)
 {
        static bool initialized = false;
-       extern NTSTATUS sys_lease_linux_init(void);
-
+#define _MODULE_PROTO(init) extern NTSTATUS init(void);
+       STATIC_sys_lease_MODULES_PROTO;
        init_module_fn static_init[] = { STATIC_sys_lease_MODULES };
 
        if (initialized) return NT_STATUS_OK;