X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=servers%2Fslapd%2Fback-ldbm%2Fproto-back-ldbm.h;h=a0abc0d86795ffd7ecb94ef525f68b01e3ed2e1a;hb=88c43a1e6e4d8b7cbe8ed157114e820f6e7ab35d;hp=96eabe58505818555a0a20142619405dcdf9343f;hpb=c530ba9ceea7bbe0227e6b567392a7fe5ea75d3f;p=openldap diff --git a/servers/slapd/back-ldbm/proto-back-ldbm.h b/servers/slapd/back-ldbm/proto-back-ldbm.h index 96eabe5850..a0abc0d867 100644 --- a/servers/slapd/back-ldbm/proto-back-ldbm.h +++ b/servers/slapd/back-ldbm/proto-back-ldbm.h @@ -3,6 +3,8 @@ #include +#include "external.h" + LDAP_BEGIN_DECL /* @@ -35,7 +37,9 @@ void attr_index_config LDAP_P(( struct ldbminfo *li, char *fname, int lineno, 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 )); +int cache_add_entry_rw LDAP_P(( struct cache *cache, Entry *e, + int state, int rw )); +int cache_update_entry LDAP_P(( struct cache *cache, Entry *e )); 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 )); @@ -47,6 +51,7 @@ int cache_delete_entry LDAP_P(( struct cache *cache, Entry *e )); 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 )); +void ldbm_cache_really_close LDAP_P(( Backend *be, struct dbcache *db )); 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 )); @@ -66,13 +71,14 @@ Entry * dn2entry_w LDAP_P(( Backend *be, char *dn, char **matched )); * filterindex.c */ -IDList * filter_candidates LDAP_P(( Backend *be, Filter *f )); +ID_BLOCK * filter_candidates LDAP_P(( Backend *be, Filter *f )); /* * id2children.c */ int id2children_add LDAP_P(( Backend *be, Entry *p, Entry *e )); +int id2children_remove LDAP_P(( Backend *be, Entry *p, Entry *e )); int has_children LDAP_P(( Backend *be, Entry *p )); /* @@ -81,7 +87,7 @@ int has_children LDAP_P(( Backend *be, Entry *p )); 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_rw 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 )); @@ -89,25 +95,26 @@ Entry * id2entry_w LDAP_P(( Backend *be, ID id )); * idl.c */ -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 )); +ID_BLOCK * idl_alloc LDAP_P(( int nids )); +ID_BLOCK * idl_allids LDAP_P(( Backend *be )); +void idl_free LDAP_P(( ID_BLOCK *idl )); +ID_BLOCK * 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 )); -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 )); +int idl_insert LDAP_P(( ID_BLOCK **idl, ID id, int maxids )); +int idl_delete_key LDAP_P(( Backend *be, struct dbcache *db, Datum key, ID id )); +ID_BLOCK * idl_intersection LDAP_P(( Backend *be, ID_BLOCK *a, ID_BLOCK *b )); +ID_BLOCK * idl_union LDAP_P(( Backend *be, ID_BLOCK *a, ID_BLOCK *b )); +ID_BLOCK * idl_notin LDAP_P(( Backend *be, ID_BLOCK *a, ID_BLOCK *b )); +ID idl_firstid LDAP_P(( ID_BLOCK *idl )); +ID idl_nextid LDAP_P(( ID_BLOCK *idl, ID id )); /* * index.c */ int index_add_entry LDAP_P(( Backend *be, Entry *e )); -int index_add_mods LDAP_P(( Backend *be, LDAPMod *mods, ID id )); -IDList * index_read LDAP_P(( Backend *be, char *type, int indextype, char *val )); +int index_add_mods LDAP_P(( Backend *be, LDAPModList *ml, ID id )); +ID_BLOCK * 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 )); /* @@ -125,6 +132,7 @@ int index_add_values LDAP_P(( Backend *be, char *type, struct berval **vals, ID 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 )); +int next_id_save LDAP_P(( Backend *be )); LDAP_END_DECL #endif