1999-09-09 03:06:24 +08:00
|
|
|
/* $OpenLDAP$ */
|
1999-08-05 07:59:13 +08:00
|
|
|
/*
|
2000-05-13 10:47:56 +08:00
|
|
|
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
|
1999-08-05 07:59:13 +08:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
*/
|
1999-08-07 07:07:46 +08:00
|
|
|
|
1999-02-05 17:03:47 +08:00
|
|
|
#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 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 int ldbm_back_db_config LDAP_P(( BackendDB *bd,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char *fname, int lineno,
|
|
|
|
int argc, char **argv ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
1999-12-08 12:37:59 +08:00
|
|
|
extern int ldbm_back_extended LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char *reqoid,
|
1999-12-08 12:37:59 +08:00
|
|
|
struct berval *reqdata,
|
1999-12-16 07:22:47 +08:00
|
|
|
char **rspoid,
|
1999-12-08 12:37:59 +08:00
|
|
|
struct berval **rspdata,
|
1999-12-10 12:52:32 +08:00
|
|
|
LDAPControl *** rspctrls,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char **text,
|
1999-12-16 07:22:47 +08:00
|
|
|
struct berval *** refs ));
|
1999-12-08 12:37:59 +08:00
|
|
|
|
1999-02-05 17:03:47 +08:00
|
|
|
extern int ldbm_back_bind LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char *dn, const char *ndn, int method,
|
1999-06-29 11:29:26 +08:00
|
|
|
struct berval *cred, char** edn ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
|
|
|
extern int ldbm_back_unbind LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op ));
|
|
|
|
|
|
|
|
extern int ldbm_back_search LDAP_P(( BackendDB *bd,
|
2000-05-22 11:46:57 +08:00
|
|
|
Connection *conn, Operation *op,
|
|
|
|
const char *base, const char *nbase,
|
|
|
|
int scope, int deref, int sizelimit, int timelimit,
|
|
|
|
Filter *filter, const char *filterstr,
|
|
|
|
char **attrs, int attrsonly ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
2000-02-07 05:09:44 +08:00
|
|
|
extern int ldbm_back_compare LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char *dn, const char *ndn,
|
|
|
|
AttributeAssertion *ava ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
|
|
|
extern int ldbm_back_modify LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char *dn, const char *ndn, Modifications *ml ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
|
|
|
extern int ldbm_back_modrdn LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op,
|
2000-05-22 11:46:57 +08:00
|
|
|
const char *dn, const char *ndn,
|
|
|
|
const char* newrdn, int deleteoldrdn,
|
|
|
|
const char *newSuperior ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
|
|
|
extern int ldbm_back_add LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op, Entry *e ));
|
|
|
|
|
|
|
|
extern int ldbm_back_delete LDAP_P(( BackendDB *bd,
|
2000-05-22 11:46:57 +08:00
|
|
|
Connection *conn, Operation *op,
|
|
|
|
const char *dn, const char *ndn ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
|
|
|
extern int ldbm_back_abandon LDAP_P(( BackendDB *bd,
|
1999-06-19 07:53:05 +08:00
|
|
|
Connection *conn, Operation *op, ber_int_t msgid ));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
|
|
|
extern int ldbm_back_group LDAP_P(( BackendDB *bd,
|
2000-09-29 13:25:44 +08:00
|
|
|
Connection *conn, Operation *op,
|
2000-05-22 11:46:57 +08:00
|
|
|
Entry *target,
|
2000-05-29 00:36:34 +08:00
|
|
|
const char* gr_ndn,
|
|
|
|
const char* op_ndn,
|
|
|
|
ObjectClass* group_oc,
|
2000-02-15 04:57:34 +08:00
|
|
|
AttributeDescription* group_at));
|
1999-02-05 17:03:47 +08:00
|
|
|
|
2000-06-22 01:23:24 +08:00
|
|
|
extern int ldbm_back_attribute LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op,
|
|
|
|
Entry *target,
|
|
|
|
const char* e_ndn,
|
|
|
|
AttributeDescription* entry_at,
|
2000-06-26 09:22:32 +08:00
|
|
|
struct berval ***vals));
|
2000-06-22 01:23:24 +08:00
|
|
|
|
1999-08-18 03:00:59 +08:00
|
|
|
|
|
|
|
/* hooks for slap tools */
|
|
|
|
extern int ldbm_tool_entry_open LDAP_P(( BackendDB *be, int mode ));
|
|
|
|
extern int ldbm_tool_entry_close LDAP_P(( BackendDB *be ));
|
|
|
|
extern ID ldbm_tool_entry_first LDAP_P(( BackendDB *be ));
|
|
|
|
extern ID ldbm_tool_entry_next LDAP_P(( BackendDB *be ));
|
|
|
|
extern Entry* ldbm_tool_entry_get LDAP_P(( BackendDB *be, ID id ));
|
|
|
|
extern ID ldbm_tool_entry_put LDAP_P(( BackendDB *be, Entry *e ));
|
2000-02-29 05:16:05 +08:00
|
|
|
|
2000-07-19 10:24:08 +08:00
|
|
|
extern int ldbm_tool_entry_reindex LDAP_P(( BackendDB *be, ID id ));
|
1999-08-18 03:00:59 +08:00
|
|
|
extern int ldbm_tool_sync LDAP_P(( BackendDB *be ));
|
|
|
|
|
2000-06-17 15:45:40 +08:00
|
|
|
extern int ldbm_back_referrals LDAP_P(( BackendDB *bd,
|
|
|
|
Connection *conn, Operation *op,
|
|
|
|
const char *dn, const char *ndn,
|
|
|
|
const char **text ));
|
|
|
|
|
1999-02-05 17:03:47 +08:00
|
|
|
LDAP_END_DECL
|
|
|
|
|
|
|
|
#endif /* _LDBM_EXTERNAL_H */
|
|
|
|
|