HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
SLAPI_VIRTUALATTRS_LOOP_DETECTED (failed to evaluate a vattr).
SLAPI_VIRTUAL_NOT_FOUND (type not recognized by any vattr and not a real attr in
entry).
ENOMEM (memory error).
44.5 slapi_vattr_values_free()
Description This function should be used to free the valueset and type names returned from
“slapi_vattr_values_get_ex()”.
Syntax
#include "slapi-plugin.h"
void slapi_vattr_values_free ( Slapi_ValueSet **value,
char **actual_type_name, int flags);
Parameters This function takes the following parameters:
Valueset to be freed.
value
List of type names.
actual_type_name
The buffer flags returned from slapi_vattr_values_get_ex(). This contains
information that this function needs to determine which objects need to be freed.
flags
See also “slapi_vattr_values_get_ex()”
44.6 slapi_vattr_values_get()
Returns the values of a virtual attribute for the given an entry and the attribute-type name.
Syntax
int slapi_vattr_values_get ( Slapi_Entry *e, char *type,
Slapi_ValueSet** results, int *type_name_disposition,
char **actual_type_name, int flags,int *buffer_flags);
Parameters This function takes the following parameters:
Entry to be compared.
e
Attribute type name.
type
Pointer to the result set: 0 if the compare is true, 1 if the compare is false.results
Matching result. Valid value is as follows:
SLAPI_VIRTUALATTRS_TYPE_NAME_MATCHED_EXACTLY_OR_ALIAS
type_name_disposition
Type name as found.
actual_type_name
Not used. You should pass 0 for this parameter.flags
Bit mask of options. Valid value is as follows:
SLAPI_VIRTUALATTRS_RETURNED_POINTERS
buffer_flags
Returns This function returns 0 for success. Otherwise, this function returns the following:
SLAPI_VIRTUALATTRS_LOOP_DETECTED (failed to evaluate a vattr).
SLAPI_VIRTUAL_NOT_FOUND (type not recognized by any vattr and not a real attr in
entry).
ENOMEM (memory error).
Memory concerns Gets values for an attribute type (vattr_type_thang) in the list.
See also “slapi_vattr_values_get_ex()”
44.5 slapi_vattr_values_free() 355