1
0
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:
Andrew Tridgell
2006-05-20 03:08:44 +00:00
committed by Gerald (Jerry) Carter
parent 2ab8343e99
commit c6d20c2245
10 changed files with 20 additions and 10 deletions

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }

View File

@@ -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;
} }