return NT_STATUS_UNSUCCESSFUL;
}
- init = (init_module_fn)dlsym(handle, "init_samba_module");
+ init = (init_module_fn)dlsym(handle, SAMBA_INIT_MODULE);
/* we must check dlerror() to determine if it worked, because
dlsym() can validly return NULL */
error = dlerror();
if (error) {
- DEBUG(0, ("Error trying to resolve symbol 'init_samba_module' "
- "in %s: %s\n", module_name, error));
+ DEBUG(0, ("Error trying to resolve symbol '" SAMBA_INIT_MODULE
+ "' in %s: %s\n", module_name, error));
dlclose(handle);
return NT_STATUS_UNSUCCESSFUL;
}
/* Module support */
typedef NTSTATUS (*init_module_fn) (void);
-NTSTATUS init_samba_module(void);
+NTSTATUS samba_init_module(void);
/* this needs to be a string which is not in the C library. We
previously used "init_module", but that meant that modules which
-_init_samba_module
+_samba_init_module
fi
if test x"$DEST" = xSHARED; then
- AC_DEFINE([$1][_init], [init_samba_module], [Whether to build $1 as shared module])
+ AC_DEFINE([$1][_init], [samba_init_module], [Whether to build $1 as shared module])
$4_MODULES="$$4_MODULES $3"
AC_MSG_RESULT([shared])
[$6]
perfcount_test_end
};
-NTSTATUS init_samba_module(void)
+NTSTATUS samba_init_module(void)
{
return smb_register_perfcounter(SMB_PERFCOUNTER_INTERFACE_VERSION,
"pc_test", &perfcount_test_handlers);
conf.DEFINE('static_init_%s' % p, '{}')
if p in shared_list:
for entry in shared_list[p]:
- conf.DEFINE('%s_init' % entry, 'init_samba_module')
+ conf.DEFINE('%s_init' % entry, 'samba_init_module')
conf.env[shared_env].append('%s' % entry)
if not os.getenv('TOPLEVEL_BUILD'):