19.11. slapi_attr_get_type()

Description

Gets the name of the attribute type from a specified attribute.

Syntax

#include "slapi-plugin.h"
int slapi_attr_get_type( Slapi_Attr *attr, char **type );

Parameters

This function takes the following parameters:

attr Attribute for which you want to get the type.
type When you call slapi_attr_get_type(), this parameter is set to a pointer to the type of the specified attribute. Do not free this attribute type; the type is part of the actual data in the attribute, not a copy of the data.
Returns

This function returns 0 if successful.