1998-08-09 08:43:13 +08:00
|
|
|
#ifndef _PROTO_BACK_LDBM
|
|
|
|
#define _PROTO_BACK_LDBM
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
#include <ldap_cdefs.h>
|
|
|
|
|
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
1998-10-24 10:42:38 +08:00
|
|
|
/*
|
|
|
|
* alias.c
|
|
|
|
*/
|
1998-10-25 09:41:42 +08:00
|
|
|
Entry *derefAlias_r LDAP_P((
|
1998-10-24 12:01:20 +08:00
|
|
|
Backend *be,
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
1998-10-25 09:41:42 +08:00
|
|
|
Entry *e ));
|
|
|
|
char *derefDN LDAP_P((
|
1998-10-24 12:01:20 +08:00
|
|
|
Backend *be,
|
|
|
|
Connection *conn,
|
|
|
|
Operation *op,
|
1998-10-25 09:41:42 +08:00
|
|
|
char *dn ));
|
1998-10-24 10:42:38 +08:00
|
|
|
|
1998-08-09 08:43:13 +08:00
|
|
|
/*
|
|
|
|
* attr.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
void attr_masks LDAP_P(( struct ldbminfo *li, char *type, int *indexmask,
|
|
|
|
int *syntaxmask ));
|
|
|
|
void attr_index_config LDAP_P(( struct ldbminfo *li, char *fname, int lineno,
|
|
|
|
int argc, char **argv, int init ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* cache.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
void cache_set_state LDAP_P(( struct cache *cache, Entry *e, int state ));
|
|
|
|
void cache_return_entry_r LDAP_P(( struct cache *cache, Entry *e ));
|
|
|
|
void cache_return_entry_w LDAP_P(( struct cache *cache, Entry *e ));
|
|
|
|
int cache_add_entry_lock LDAP_P(( struct cache *cache, Entry *e, int state ));
|
|
|
|
ID cache_find_entry_dn2id LDAP_P(( Backend *be, struct cache *cache, char *dn ));
|
|
|
|
Entry * cache_find_entry_id LDAP_P(( struct cache *cache, ID id, int rw ));
|
|
|
|
int cache_delete_entry LDAP_P(( struct cache *cache, Entry *e ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* dbcache.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
struct dbcache * ldbm_cache_open LDAP_P(( Backend *be, char *name, char *suffix,
|
|
|
|
int flags ));
|
|
|
|
void ldbm_cache_close LDAP_P(( Backend *be, struct dbcache *db ));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
void ldbm_cache_really_close LDAP_P(( Backend *be, struct dbcache *db ));
|
1998-10-25 09:41:42 +08:00
|
|
|
void ldbm_cache_flush_all LDAP_P(( Backend *be ));
|
|
|
|
Datum ldbm_cache_fetch LDAP_P(( struct dbcache *db, Datum key ));
|
|
|
|
int ldbm_cache_store LDAP_P(( struct dbcache *db, Datum key, Datum data, int flags ));
|
|
|
|
int ldbm_cache_delete LDAP_P(( struct dbcache *db, Datum key ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* dn2id.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
int dn2id_add LDAP_P(( Backend *be, char *dn, ID id ));
|
|
|
|
ID dn2id LDAP_P(( Backend *be, char *dn ));
|
|
|
|
int dn2id_delete LDAP_P(( Backend *be, char *dn ));
|
|
|
|
Entry * dn2entry_r LDAP_P(( Backend *be, char *dn, char **matched ));
|
|
|
|
Entry * dn2entry_w LDAP_P(( Backend *be, char *dn, char **matched ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* filterindex.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
IDList * filter_candidates LDAP_P(( Backend *be, Filter *f ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* id2children.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
int id2children_add LDAP_P(( Backend *be, Entry *p, Entry *e ));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
int id2children_remove LDAP_P(( Backend *be, Entry *p, Entry *e ));
|
1998-10-25 09:41:42 +08:00
|
|
|
int has_children LDAP_P(( Backend *be, Entry *p ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* id2entry.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
int id2entry_add LDAP_P(( Backend *be, Entry *e ));
|
|
|
|
int id2entry_delete LDAP_P(( Backend *be, Entry *e ));
|
|
|
|
Entry * id2entry LDAP_P(( Backend *be, ID id, int rw ));
|
|
|
|
Entry * id2entry_r LDAP_P(( Backend *be, ID id ));
|
|
|
|
Entry * id2entry_w LDAP_P(( Backend *be, ID id ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* idl.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
IDList * idl_alloc LDAP_P(( int nids ));
|
|
|
|
IDList * idl_allids LDAP_P(( Backend *be ));
|
|
|
|
void idl_free LDAP_P(( IDList *idl ));
|
|
|
|
IDList * idl_fetch LDAP_P(( Backend *be, struct dbcache *db, Datum key ));
|
|
|
|
int idl_insert_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id ));
|
|
|
|
int idl_insert LDAP_P(( IDList **idl, ID id, int maxids ));
|
Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking. Retyped a number of functions, usually
to return void. Fixed a number of printf format errors.
API changes (in ldap/include):
Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.
A number of `extern' declarations are left (some added by protoize), to
be cleaned away later. Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-16 06:40:11 +08:00
|
|
|
int idl_delete_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id ));
|
1998-10-25 09:41:42 +08:00
|
|
|
IDList * idl_intersection LDAP_P(( Backend *be, IDList *a, IDList *b ));
|
|
|
|
IDList * idl_union LDAP_P(( Backend *be, IDList *a, IDList *b ));
|
|
|
|
IDList * idl_notin LDAP_P(( Backend *be, IDList *a, IDList *b ));
|
|
|
|
ID idl_firstid LDAP_P(( IDList *idl ));
|
|
|
|
ID idl_nextid LDAP_P(( IDList *idl, ID id ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* index.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
int index_add_entry LDAP_P(( Backend *be, Entry *e ));
|
1998-12-21 08:21:58 +08:00
|
|
|
int index_add_mods LDAP_P(( Backend *be, LDAPModList *ml, ID id ));
|
1998-10-25 09:41:42 +08:00
|
|
|
IDList * index_read LDAP_P(( Backend *be, char *type, int indextype, char *val ));
|
|
|
|
int index_add_values LDAP_P(( Backend *be, char *type, struct berval **vals, ID id ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* kerberos.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
#ifdef HAVE_KERBEROS
|
|
|
|
/* krbv4_ldap_auth LDAP_P(( Backend *be, struct berval *cred, AUTH_DAT *ad )); */
|
1998-08-09 08:43:13 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* nextid.c
|
|
|
|
*/
|
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
ID next_id LDAP_P(( Backend *be ));
|
|
|
|
void next_id_return LDAP_P(( Backend *be, ID id ));
|
|
|
|
ID next_id_get LDAP_P(( Backend *be ));
|
1999-01-22 10:26:19 +08:00
|
|
|
int next_id_save LDAP_P(( Backend *be ));
|
1998-08-09 08:43:13 +08:00
|
|
|
|
1998-10-25 09:41:42 +08:00
|
|
|
LDAP_END_DECL
|
1998-08-09 08:43:13 +08:00
|
|
|
#endif
|