HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameters:
The empty attribute to be initialized.
a
Attribute type to be initialized.
type
Returns This function returns the newly-initialized attribute.
See also
“slapi_attr_new()”
“slapi_attr_free()”
“slapi_attr_dup()”
19.14 slapi_attr_new()
Description Use this function to create an empty attribute.
Syntax
#include "slapi-plugin.h"
Slapi_Attr *slapi_attr_new( void );
Parameters This function takes no parameters.
Returns This function returns the newly-created attribute.
See also
“slapi_attr_free()”
“slapi_attr_dup()”
19.15 slapi_attr_next_value()
Description Use this function to get the next value of an attribute. The value of an attribute
associated with an index is placed into a value. This is part of a set of functions to enumerate
over a Slapi_Attr structure.
Syntax
#include "slapi-plugin.h"
int slapi_attr_next_value( Slapi_Attr *a, int hint,
Slapi_Value **v );
Parameters This function takes the following parameters:
Attribute contained the desired value.
a
Index of the value to be returned.
hint
Holds the value of the attribute.
v
Returns This function returns one of the following values:
hint plus 1 if the value is found.
-1 if null or if a value at hint is not found.
See also
“slapi_attr_first_value()”
“slapi_attr_get_numvalues()”
19.16 slapi_attr_set_valueset()
Description This function initializes a valueset in a Slapi_Attr structure from a specified
Slapi_ValueSet structure; the valueset in Slapi_Attr will be *vs, not a copy.
19.14 slapi_attr_new() 177