Get a list of the real and virtual attributes for an entry.
#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:
Get attributes for this entry
List of attributes set by the server
Bitmask of SLAPI_REALATTRS_ONLY, SLAPI_VIRTUALATTRS_ONLY , SLAPI_VIRTUALATTRS_REQUEST_POINTERS, SLAPI_VIRTUALATTRS_LIST_OPERATIONAL_ATTRS determining what to set in the list
Bitmask of SLAPI_VIRTUALATTRS_RETURNED_POINTERS, SLAPI_VIRTUALATTRS_RETURNED_COPIES, SLAPI_VIRTUALATTRS_REALATTRS_ONLY , SLAPI_VIRTUALATTRS_RETURNED_TYPENAME_ONLY determining how the virtual attributes should be handled
This function sets types to point to a full list of attributes for the entry e depending on the flags parameter. Use the buffer_flags parameter when freeing the list.
Use slapi_vattr_values_type_thang_get() to access the attributes.
This functions returns 1 if the attribute may be virtual in the scope specified. Otherwise, it returns 0.
When finished with the types list, free it using slapi_vattr_attrs_free().