/* Mark the attribute as deleted, remove from list, and remove all its
* names from the AVL tree. Leave the OID in the tree.
*/
-int
+void
at_delete( AttributeType *at )
{
at->sat_flags |= SLAP_AT_DELETED;
LDAP_STAILQ_REMOVE(&attr_list,at,slap_attribute_type,sat_next);
at_delete_names( at );
-
- return 0;
}
static void
/* Mark the ObjectClass as deleted, remove from list, and remove all its
* names from the AVL tree. Leave the OID in the tree.
*/
-int
+void
oc_delete( ObjectClass *oc )
{
oc->soc_flags |= SLAP_OC_DELETED;
LDAP_STAILQ_REMOVE(&oc_list,oc,slap_object_class,soc_next);
oc_delete_names( oc );
-
- return 0;
}
static void
LDAP_SLAPD_F (int) at_start LDAP_P(( AttributeType **at ));
LDAP_SLAPD_F (int) at_next LDAP_P(( AttributeType **at ));
+LDAP_SLAPD_F (void) at_delete LDAP_P(( AttributeType *at ));
LDAP_SLAPD_F (void) at_unparse LDAP_P((
BerVarray *bva, AttributeType *start, AttributeType *end, int system ));
LDAP_SLAPD_F (int) oc_schema_info( Entry *e );
-LDAP_SLAPD_F (int) oc_start LDAP_P(( ObjectClass **at ));
-LDAP_SLAPD_F (int) oc_next LDAP_P(( ObjectClass **at ));
+LDAP_SLAPD_F (int) oc_start LDAP_P(( ObjectClass **oc ));
+LDAP_SLAPD_F (int) oc_next LDAP_P(( ObjectClass **oc ));
+LDAP_SLAPD_F (void) oc_delete LDAP_P(( ObjectClass *oc ));
LDAP_SLAPD_F (void) oc_unparse LDAP_P((
BerVarray *bva, ObjectClass *start, ObjectClass *end, int system ));