44.7. slapi_vattr_values_get_ex()
This function returns the values for an attribute type from an entry, including the values for any subtypes of the specified attribute type. The routine will return the values of virtual attributes in that entry if requested to do so.
#include "slapi-plugin.h" int slapi_vattr_values_get_ex(Slapi_Entry *e, char *type, Slapi_ValueSet*** results, int **type_name_disposition, char ***actual_type_name, int flags, int *buffer_flags, int *subtype_count);
This function takes the following parameters:
|
e
| Entry from which to get the values. |
|
type
| Attribute type name. |
|
results
| Pointer to result set. |
|
type_name_disposition
| Matching result. |
|
actual_type_name
| Type name as found. |
|
flags
|
Bit mask of options. Valid values are as follows:
|
|
buffer_flags
| Bit mask to be used as input flags for slapi_values_free(). |
|
subtype_count
| Number of subtypes matched. |
This function returns 0 for success, in which case:
- results contains the current values for type all of the subtypes in e.
- type_name_disposition contains information on how each type was matched. Valid values are:
SLAPI_VIRTUALATTRS_TYPE_NAME_MATCHED_EXACTLY_OR_ALIASandSLAPI_VIRTUALATTRS_TYPE_NAME_MATCHED_SUBTYPE. - actual_type_name contains the type name as found.
- buffer_flags contains the bit mask to be used as input flags for
slapi_values_free(). - subtype_count contains the number of subtypes matched.
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).
slapi_vattr_values_free() should be used to free the returned result set and type names, passing the buffer_flags value returned from this routine.

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.