From: Juan Gomez Date: Wed, 3 Mar 1999 22:55:28 +0000 (+0000) Subject: Made add_values(), delete_values(), and replace_values() so they can be X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~496 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=68a413a6010c472be74fd2f54283c7d093c524be;p=openldap Made add_values(), delete_values(), and replace_values() so they can be used in implementing modrdn v3. --- diff --git a/servers/slapd/back-bdb2/modify.c b/servers/slapd/back-bdb2/modify.c index f638aa7059..b58aedc602 100644 --- a/servers/slapd/back-bdb2/modify.c +++ b/servers/slapd/back-bdb2/modify.c @@ -11,9 +11,6 @@ #include "back-bdb2.h" #include "proto-back-bdb2.h" -static int add_values(Entry *e, LDAPMod *mod, char *dn); -static int delete_values(Entry *e, LDAPMod *mod, char *dn); -static int replace_values(Entry *e, LDAPMod *mod, char *dn); static int bdb2i_back_modify_internal( @@ -157,7 +154,7 @@ bdb2_back_modify( } -static int +int add_values( Entry *e, LDAPMod *mod, @@ -185,7 +182,7 @@ add_values( return( LDAP_SUCCESS ); } -static int +int delete_values( Entry *e, LDAPMod *mod, @@ -241,7 +238,7 @@ delete_values( return( LDAP_SUCCESS ); } -static int +int replace_values( Entry *e, LDAPMod *mod, diff --git a/servers/slapd/back-bdb2/proto-back-bdb2.h b/servers/slapd/back-bdb2/proto-back-bdb2.h index cd5fa7852d..ae7e550da0 100644 --- a/servers/slapd/back-bdb2/proto-back-bdb2.h +++ b/servers/slapd/back-bdb2/proto-back-bdb2.h @@ -131,6 +131,16 @@ int bdb2i_index_add_values LDAP_P(( BackendDB *be, char *type, struct berval **v /* bdb2i_krbv4_ldap_auth LDAP_P(( BackendDB *be, struct berval *cred, AUTH_DAT *ad )); */ #endif +/* + * modify.c + * These prototypes are placed here because they are used by modify and + * modify rdn which are implemented in different files. + */ + +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 )); + /* * nextid.c */