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:

e
Entry to be compared.
type
Attribute type name.
results
Pointer to the result set: 0 if the compare is true, 1 if the compare is false.
type_name_disposition
Matching result. Valid value is as follows: SLAPI_VIRTUALATTRS_TYPE_NAME_MATCHED_EXACTLY_OR_ALIAS
actual_type_name
Type name as found.
flags
Not used. You should pass 0 for this parameter.
buffer_flags
Bit mask of options. Valid value is as follows: SLAPI_VIRTUALATTRS_RETURNED_POINTERS
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.