HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
int slapi_attr_get_type( Slapi_Attr *attr, char **type );
Parameters This function takes the following parameters:
Attribute for which you want to get the type.
attr
When you call slapi_attr_get_type(), this parameter is set to a pointer to the type
of the specified attribute. Do not free this attribute type; the type is part of the actual
data in the attribute, not a copy of the data.
type
Returns This function returns 0 if successful.
See also
“slapi_attr_type2plugin()”
“slapi_attr_type_cmp()”
“slapi_attr_types_equivalent()”
“slapi_attr_basetype()”
19.12 slapi_attr_get_valueset()
Description Copies existing values contained in an attribute into a valueset.
Syntax
#include "slapi-plugin.h"
int slapi_attr_get_valueset(const Slapi_Attr *a,
Slapi_ValueSet **vs);
Parameters This function takes the following parameters:
Attribute containing the values to be placed into a valueset.
a
Receives values from the first parameter.
vs
Returns This function always returns 0.
See also
“slapi_entry_add_valueset()”
“slapi_valueset_new()”
“slapi_valueset_free()”
“slapi_valueset_init()”
“slapi_valueset_done()”
“slapi_valueset_add_value()”
“slapi_valueset_first_value()”
“slapi_valueset_next_value()”
“slapi_valueset_count()”
19.13 slapi_attr_init()
Description Use this function to initialize an empty attribute with an attribute type.
Syntax
#include "slapi-plugin.h"
Slapi_Attr *slapi_attr_init(Slapi_Attr *a, const char *type);
176 Functions for handling attributes