Added OpenLDAP-specific SLAPI for getting entry ID

This commit is contained in:
Luke Howard 2003-01-21 14:08:58 +00:00
parent 97b9eb2e55
commit 8de6186e54
2 changed files with 11 additions and 0 deletions

View file

@ -132,6 +132,16 @@ slapi_entry_get_dn( Slapi_Entry *e )
#endif /* !defined(LDAP_SLAPI) */
}
int
slapi_x_entry_get_id( Slapi_Entry *e )
{
#if defined(LDAP_SLAPI)
return e->e_id;
#else
return NOID;
#endif /* !defined(LDAP_SLAPI) */
}
void
slapi_entry_set_dn(
Slapi_Entry *e,

View file

@ -49,6 +49,7 @@ int slapi_entry_attr_merge( Slapi_Entry *e, char *type, struct berval **vals );
int slapi_entry_attr_find( Slapi_Entry *e, char *type, Slapi_Attr **attr );
int slapi_entry_attr_delete( Slapi_Entry *e, char *type );
char *slapi_entry_get_dn( Slapi_Entry *e );
int slapi_x_entry_get_id( Slapi_Entry *e );
void slapi_entry_set_dn( Slapi_Entry *e, char *dn );
Slapi_Entry *slapi_entry_dup( Slapi_Entry *e );
Slapi_Entry *slapi_entry_alloc();