mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
Merge in smb_load_module() function from HEAD
(This used to be commit 6cb124247d10de86bdf6a98f3dd703b3a9eb1d35)
This commit is contained in:
parent
896e133c3c
commit
7859c7df44
@ -57,24 +57,6 @@ NTSTATUS smb_load_module(const char *module_name)
|
||||
return nt_status;
|
||||
}
|
||||
|
||||
/* Load all modules in list and return number of
|
||||
* modules that has been successfully loaded */
|
||||
int smb_load_modules(const char **modules)
|
||||
{
|
||||
int i;
|
||||
int success = 0;
|
||||
|
||||
for(i = 0; modules[i]; i++){
|
||||
if(NT_STATUS_IS_OK(smb_load_module(modules[i]))) {
|
||||
success++;
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(2, ("%d modules successfully loaded\n", success));
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
#else /* HAVE_DLOPEN */
|
||||
|
||||
NTSTATUS smb_load_module(const char *module_name)
|
||||
@ -83,10 +65,4 @@ NTSTATUS smb_load_module(const char *module_name)
|
||||
return NT_STATUS_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
int smb_load_modules(const char **modules)
|
||||
{
|
||||
DEBUG(0,("This samba executable has not been build with plugin support"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
#endif /* HAVE_DLOPEN */
|
||||
|
Loading…
x
Reference in New Issue
Block a user