+/* $OpenLDAP$ */
+/*
+ * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
+
#ifndef _LDBM_EXTERNAL_H
#define _LDBM_EXTERNAL_H
LDAP_BEGIN_DECL
-extern int ldbm_back_initialize LDAP_P(( BackendInfo *bi ));
-extern int ldbm_back_open LDAP_P(( BackendInfo *bi ));
-extern int ldbm_back_close LDAP_P(( BackendInfo *bi ));
-extern int ldbm_back_destroy LDAP_P(( BackendInfo *bi ));
+extern BI_init ldbm_back_initialize;
+extern BI_open ldbm_back_open;
+extern BI_close ldbm_back_close;
+extern BI_destroy ldbm_back_destroy;
+
+extern BI_db_init ldbm_back_db_init;
+extern BI_db_open ldbm_back_db_open;
+extern BI_db_close ldbm_back_db_close;
+extern BI_db_destroy ldbm_back_db_destroy;
+
+extern BI_db_config ldbm_back_db_config;
+
+extern BI_op_extended ldbm_back_extended;
-extern int ldbm_back_db_init LDAP_P(( BackendDB *bd ));
-extern int ldbm_back_db_open LDAP_P(( BackendDB *bd ));
-extern int ldbm_back_db_close LDAP_P(( BackendDB *bd ));
-extern int ldbm_back_db_destroy LDAP_P(( BackendDB *bd ));
+extern BI_op_bind ldbm_back_bind;
-extern int ldbm_back_db_config LDAP_P(( BackendDB *bd,
- char *fname, int lineno, int argc, char **argv ));
+extern BI_op_unbind ldbm_back_unbind;
-extern int ldbm_back_bind LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op,
- char *dn, int method, struct berval *cred, char** edn ));
+extern BI_op_search ldbm_back_search;
-extern int ldbm_back_unbind LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op ));
+extern BI_op_compare ldbm_back_compare;
-extern int ldbm_back_search LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op,
- char *base, int scope, int deref, int sizelimit, int timelimit,
- Filter *filter, char *filterstr, char **attrs, int attrsonly ));
+extern BI_op_modify ldbm_back_modify;
-extern int ldbm_back_compare LDAP_P((BackendDB *bd,
- Connection *conn, Operation *op,
- char *dn, Ava *ava ));
+extern BI_op_modrdn ldbm_back_modrdn;
-extern int ldbm_back_modify LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op,
- char *dn, LDAPModList *ml ));
+extern BI_op_add ldbm_back_add;
-extern int ldbm_back_modrdn LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op,
- char *dn, char*newrdn, int deleteoldrdn ));
+extern BI_op_delete ldbm_back_delete;
-extern int ldbm_back_add LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op, Entry *e ));
+extern BI_op_abandon ldbm_back_abandon;
-extern int ldbm_back_delete LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op, char *dn ));
+extern BI_acl_group ldbm_back_group;
-extern int ldbm_back_abandon LDAP_P(( BackendDB *bd,
- Connection *conn, Operation *op, int msgid ));
+extern BI_acl_attribute ldbm_back_attribute;
-extern int ldbm_back_group LDAP_P(( BackendDB *bd,
- Entry *target, char* gr_ndn, char* op_ndn,
- char* objectclassValue, char* groupattrName));
+extern BI_operational ldbm_back_operational;
+
+/* hooks for slap tools */
+extern BI_tool_entry_open ldbm_tool_entry_open;
+extern BI_tool_entry_close ldbm_tool_entry_close;
+extern BI_tool_entry_first ldbm_tool_entry_first;
+extern BI_tool_entry_next ldbm_tool_entry_next;
+extern BI_tool_entry_get ldbm_tool_entry_get;
+extern BI_tool_entry_put ldbm_tool_entry_put;
+
+extern BI_tool_entry_reindex ldbm_tool_entry_reindex;
+extern BI_tool_sync ldbm_tool_sync;
+
+extern BI_chk_referrals ldbm_back_referrals;
LDAP_END_DECL
#endif /* _LDBM_EXTERNAL_H */
-