From d4b7081715a29410d5110387186923c03901e350 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 29 May 2003 19:26:16 +0000 Subject: Update to reflect current API (This used to be commit 6cdf2b41a84f6954d3c22ae1375736ef024c2139) --- docs/docbook/devdoc/modules.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/docbook/devdoc/modules.xml b/docs/docbook/devdoc/modules.xml index 0bcdadc66c..e2eb78d6c9 100644 --- a/docs/docbook/devdoc/modules.xml +++ b/docs/docbook/devdoc/modules.xml @@ -40,7 +40,7 @@ the passdb subsystem has: -BOOL smb_register_passdb(const char *name, pdb_init_function init, int version); +NTSTATUS smb_register_passdb(int version, const char *name, pdb_init_function init); @@ -99,21 +99,21 @@ The prototype for these functions is: -int init_module(void); +NTSTATUS init_module(void); This function should call one or more -registration functions. The function should return non-zero on success and zero on -failure. +registration functions. The function should return NT_STATUS_OK on success and +NT_STATUS_UNSUCCESSFUL or a more useful nt error code on failure. For example, pdb_ldap_init() contains: -int pdb_ldap_init(void) +NTSTATUS pdb_ldap_init(void) { - smb_register_passdb("ldapsam", pdb_init_ldapsam, PASSDB_INTERFACE_VERSION); - smb_register_passdb("ldapsam_nua", pdb_init_ldapsam_nua, PASSDB_INTERFACE_VERSION); - return TRUE; +smb_register_passdb(PASSDB_INTERFACE_VERSION, "ldapsam", pdb_init_ldapsam); +smb_register_passdb(PASSDB_INTERFACE_VERSION, "ldapsam_nua", pdb_init_ldapsam_nua); + return NT_STATUS_OK; } -- cgit