summaryrefslogtreecommitdiff
path: root/docs/docbook/devdoc
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-05-29 19:26:16 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-05-29 19:26:16 +0000
commitd4b7081715a29410d5110387186923c03901e350 (patch)
tree31bd04cca7ae2ae441d62058dc67597c69712ac6 /docs/docbook/devdoc
parent69b50029f4472d29e823e2b541a59a420ab706cb (diff)
downloadsamba-d4b7081715a29410d5110387186923c03901e350.tar.gz
samba-d4b7081715a29410d5110387186923c03901e350.tar.bz2
samba-d4b7081715a29410d5110387186923c03901e350.zip
Update to reflect current API
(This used to be commit 6cdf2b41a84f6954d3c22ae1375736ef024c2139)
Diffstat (limited to 'docs/docbook/devdoc')
-rw-r--r--docs/docbook/devdoc/modules.xml16
1 files 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:
</para>
<para><programlisting>
-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);
</programlisting></para>
<para>
@@ -99,21 +99,21 @@ The prototype for these functions is:
</para>
<para><programlisting>
-int init_module(void);
+NTSTATUS init_module(void);
</programlisting></para>
<para>This function should call one or more
-registration functions. The function should return non-zero on success and zero on
-failure.</para>
+registration functions. The function should return NT_STATUS_OK on success and
+NT_STATUS_UNSUCCESSFUL or a more useful nt error code on failure.</para>
<para>For example, pdb_ldap_init() contains: </para>
<para><programlisting>
-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;
}
</programlisting></para>