Show Table of Contents
Chapter 19. Functions for Handling Attributes
This chapter contains reference information on attribute routines.
Table 19.1. Attribute Routines
| Function | Description |
|---|---|
| slapi_attr_add_value() | Adds a value to an attribute. |
| slapi_attr_basetype() | Returns the base type of an attribute. |
| slapi_attr_dup() | Duplicates an attribute. |
| slapi_attr_first_value() | Gets the first value of an attribute. |
| slapi_attr_flag_is_set() | Determines if certain flags are set. |
| slapi_attr_free() | Frees an attribute. |
| slapi_attr_get_bervals_copy() | Puts the values contained in an attribute into an array of berval structures. |
| slapi_attr_get_flags() | Gets the flags associated with an attribute. |
| slapi_attr_get_numvalues() | Puts the count of values of an attribute into an integer. |
| slapi_attr_get_oid_copy() | Searches for an attribute type and gives its OID string. |
| slapi_attr_get_type() | Gets the name of the attribute type. |
| slapi_attr_get_valueset() | Copies attribute values into a valueset. |
| slapi_attr_init() | Initializes an empty attribute. |
| slapi_attr_new() | Creates a new attribute. |
| slapi_attr_next_value() | Gets the next value of an attribute. |
| slapi_attr_set_valueset() | Initializes a valueset in a Slapi_Attr structure from a specified Slapi_ValueSet structure. |
| slapi_attr_syntax_normalize() | Returns a copy of the normalized attribute types. |
| slapi_attr_type2plugin() | Gets information about the plug-in responsible for handling an attribute type. |
| slapi_attr_type_cmp() | Compares two attributes. |
| slapi_attr_types_equivalent() | Compares two attribute names to determine if they represent the same attribute. |
| slapi_attr_value_cmp() | Compares two attribute values. |
| slapi_attr_value_find() | Determines if an attribute contains a given value. |
| Section 19.23, “slapi_valueset_set_from_smod()” | Adds the changes in a modification to a valueset. |
| slapi_valueset_set_valueset() | Initializes a Slapi_ValueSet structure from another Slapi_ValueSet structure. |
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);
Parameters
This function takes the following parameters:
| a | The attribute that will contain the values. |
| v | Values to be added to the attribute. |
Returns
This function always returns 0.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.