Chapter 44. Functions Specific to Virtual Attribute Service
Table 44.1. Virtual Attribute Service Routines
| Function | Description |
|---|---|
| slapi_vattr_list_attrs() | Returns all the attribute types, both real and virtual, from an entry. |
| slapi_vattr_attrs_free() | Frees the attribute list returned by slapi_vattr_list_attrs() . |
| slapi_vattr_schema_check_type() | Performs a schema check on the attribute types in the entry. |
| slapi_vattr_value_compare() | Compares the attribute and the name in a given entry. |
| slapi_vattr_values_free() | Frees the attribute value and name in a given entry. |
| slapi_vattr_values_get() | Returns the values of a virtual attribute for the given an entry and the attribute-type name. |
| slapi_vattr_values_get_ex() | Returns the values for an attribute type from an entry. |
| slapi_vattr_values_type_thang_get() | Gets values for an attribute type in the list only if the results field for that attribute type is NULL. |
44.1. slapi_vattr_list_attrs()
This function returns all the attribute types, both real and virtual, from an entry. You can call slapi_vattr_values_type_thang_get() and take the values present in the vattr_type_thang list rather than calling slapi_vattr_values_get() to retrieve the value.
#include "slapi-plugin.h" int slapi_vattr_list_attrs (Slapi_Entry *e, vattr_type_thang **types, int flags, int *buffer_flags);
This function takes the following parameters:
|
e
| The entry of interest. |
|
types
| Pointer to receive the list. |
|
flags
|
Bit mask of options. Valid values include:
|
|
buffer_flags
|
Bit mask of options. Valid values include:
|
The list that is returned from this API should be freed by the user by calling slapi_vattr_attrs_free() for that list.

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.