HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
19 Functions for handling attributes
This chapter contains reference information on attribute routines.
Table 19-1 Attribute routines
DescriptionFunction
Adds a value to an attribute.“slapi_attr_add_value()”
Returns the base type of an attribute.“slapi_attr_basetype()”
Duplicates an attribute.“slapi_attr_dup()”
Gets the first value of an attribute.“slapi_attr_first_value()”
Determines if certain flags are set.“slapi_attr_flag_is_set()”
Frees an attribute.“slapi_attr_free()”
Puts the values contained in an attribute into an array of berval structures.
“slapi_attr_get_bervals_copy()”
Gets the flags associated with an attribute.“slapi_attr_get_flags()”
Puts the count of values of an attribute into an integer.“slapi_attr_get_numvalues()”
Searches for an attribute type and gives its OID string.slapi_attr_get_oid_copy()
Gets the name of the attribute type.slapi_attr_get_type()
Copies attribute values into a valueset.“slapi_attr_get_valueset()”
Initializes an empty attribute.“slapi_attr_init()”
Creates a new attribute.“slapi_attr_new()”
Gets the next value of an attribute.“slapi_attr_next_value()”
Initializes a valueset in a Slapi_Attr structure from a specified
Slapi_ValueSet structure.
“slapi_attr_set_valueset()”
Returns a copy of the normalized attribute types.“slapi_attr_syntax_normalize()”
Gets information about the plug-in responsible for handling an attribute type.“slapi_attr_type2plugin()”
Compares two attributes.“slapi_attr_type_cmp()”
Compares two attribute names to determine if they represent the same
attribute.
“slapi_attr_types_equivalent()”
Compares two attribute values.“slapi_attr_value_cmp()”
Determines if an attribute contains a given value.slapi_attr_value_find()
Adds the changes in a modification to a valueset.“slapi_valueset_set_from_smod()”
Initializes a Slapi_ValueSet structure from another Slapi_ValueSet
structure.
“slapi_valueset_set_valueset()”
19.1 slapi_attr_add_value()
Description Adds a value to an attribute.
Syntax
#include "slapi-plugin.h"
int slapi_attr_add_value(Slapi_Attr *a, const Slapi_Value *v);
19.1 slapi_attr_add_value() 171