X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-ldbm%2Fproto-back-ldbm.h;h=a5066eff8b14b8c00a0d1b193e9e2fe4404f92b3;hb=4a683c204d4295407967b442363db81282a964a0;hp=12a8e618694476a0a2ad2bf72d057b749a63ea29;hpb=62aa401bd74b3f98312de5232463ec644012292f;p=openldap diff --git a/servers/slapd/back-ldbm/proto-back-ldbm.h b/servers/slapd/back-ldbm/proto-back-ldbm.h index 12a8e61869..a5066eff8b 100644 --- a/servers/slapd/back-ldbm/proto-back-ldbm.h +++ b/servers/slapd/back-ldbm/proto-back-ldbm.h @@ -129,7 +129,15 @@ ID idl_nextid LDAP_P(( ID_BLOCK *idl, ID id )); int index_add_entry LDAP_P(( Backend *be, Entry *e )); 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 )); +/* Possible operations supported (op) by index_change_values() */ +#define __INDEX_ADD_OP 0x0001 +#define __INDEX_DELETE_OP 0x0002 +int index_change_values LDAP_P(( Backend *be, + char *type, + struct berval **vals, + ID id, + unsigned int op )); + /* * kerberos.c @@ -143,11 +151,19 @@ int index_add_values LDAP_P(( Backend *be, char *type, struct berval **vals, ID * modify.c * These prototypes are placed here because they are used by modify and * modify rdn which are implemented in different files. + * + * We need ldbm_internal_modify here because of LDAP modrdn & modify use + * it. If we do not add this, there would be a bunch of code replication + * here and there and of course the likelihood of bugs increases. + * Juan C. Gomez (gomez@engr.sgi.com) 05/18/99 + * */ int add_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn )); int delete_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn )); int replace_values LDAP_P(( Entry *e, LDAPMod *mod, char *dn )); +int ldbm_modify_internal LDAP_P((Backend *be, Connection *conn, Operation *op, + char *dn, LDAPModList *mods, Entry *e)); /* * nextid.c