From 47ea3a2bf242a446f658f1573ec5d3ea533333f0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 19 Mar 2003 18:45:19 +0000 Subject: Put in the new modules system. It's now used by passdb and rpc. I will put a doc about it in dev-doc later today. (This used to be commit af7bfee0c6902c07fdb8d3abccf4c8d6bab00b5a) --- source3/modules/mysql.c | 9 ++------- source3/modules/xml.c | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/mysql.c b/source3/modules/mysql.c index 1d5819295b..47883ca7f7 100644 --- a/source3/modules/mysql.c +++ b/source3/modules/mysql.c @@ -1032,12 +1032,7 @@ static NTSTATUS mysqlsam_init(struct pdb_context * pdb_context, struct pdb_metho return NT_STATUS_OK; } -int init_module(void); - -int init_module() +int pdb_mysql_init(void) { - if(smb_register_passdb("mysql", mysqlsam_init, PASSDB_INTERFACE_VERSION)) - return 0; - - return 1; + return smb_register_passdb("mysql", mysqlsam_init, PASSDB_INTERFACE_VERSION); } diff --git a/source3/modules/xml.c b/source3/modules/xml.c index ead3e3a874..85b9e81b7f 100644 --- a/source3/modules/xml.c +++ b/source3/modules/xml.c @@ -564,12 +564,7 @@ NTSTATUS xmlsam_init(PDB_CONTEXT * pdb_context, PDB_METHODS ** pdb_method, return NT_STATUS_OK; } -int init_module(void); - -int init_module() +int pdb_xml_init(void) { - if(smb_register_passdb("xml", xmlsam_init, PASSDB_INTERFACE_VERSION)) - return 0; - - return 1; + return smb_register_passdb("xml", xmlsam_init, PASSDB_INTERFACE_VERSION); } -- cgit