mirror of
https://github.com/samba-team/samba.git
synced 2025-11-08 16:23:49 +03:00
r15731: module init functions should return NTSTATUS, not void
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2ab8343e99
commit
c6d20c2245
@@ -187,8 +187,9 @@ static int ejs_system_session(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_auth(void)
|
NTSTATUS smb_setup_ejs_auth(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "userAuth", ejs_userAuth, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "userAuth", ejs_userAuth, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
ejsDefineCFunction(-1, "system_session", ejs_system_session, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "system_session", ejs_system_session, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -215,7 +215,8 @@ static int ejs_loadparm_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_config(void)
|
NTSTATUS smb_setup_ejs_config(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "loadparm_init", ejs_loadparm_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "loadparm_init", ejs_loadparm_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -278,7 +278,8 @@ static int ejs_datablob_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_datablob(void)
|
NTSTATUS smb_setup_ejs_datablob(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "datablob_init", ejs_datablob_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "datablob_init", ejs_datablob_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -556,7 +556,8 @@ static int ejs_ldb_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_ldb(void)
|
NTSTATUS smb_setup_ejs_ldb(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "ldb_init", ejs_ldb_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "ldb_init", ejs_ldb_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,8 @@ static int ejs_resolve_name(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_nbt(void)
|
NTSTATUS smb_setup_ejs_nbt(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "resolveName", ejs_resolve_name, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "resolveName", ejs_resolve_name, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,8 @@ static int ejs_nss_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_nss(void)
|
NTSTATUS smb_setup_ejs_nss(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "nss_init", ejs_nss_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "nss_init", ejs_nss_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,8 @@ static int ejs_random_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_random(void)
|
NTSTATUS smb_setup_ejs_random(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "random_init", ejs_random_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "random_init", ejs_random_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -494,7 +494,8 @@ static int ejs_samba3_read(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_samba3(void)
|
NTSTATUS smb_setup_ejs_samba3(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "samba3_read", ejs_samba3_read, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "samba3_read", ejs_samba3_read, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -505,7 +505,8 @@ static int ejs_string_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_string(void)
|
NTSTATUS smb_setup_ejs_string(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "string_init", ejs_string_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "string_init", ejs_string_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -351,7 +351,8 @@ static int ejs_sys_init(MprVarHandle eid, int argc, struct MprVar **argv)
|
|||||||
/*
|
/*
|
||||||
setup C functions that be called from ejs
|
setup C functions that be called from ejs
|
||||||
*/
|
*/
|
||||||
void smb_setup_ejs_system(void)
|
NTSTATUS smb_setup_ejs_system(void)
|
||||||
{
|
{
|
||||||
ejsDefineCFunction(-1, "sys_init", ejs_sys_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
ejsDefineCFunction(-1, "sys_init", ejs_sys_init, NULL, MPR_VAR_SCRIPT_HANDLE);
|
||||||
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user