Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_attr_get_type()

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 of which you wish to get the type.

type

When you call this function, 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.

See Also

slapi_attr_type_cmp()

slapi_attr_types_equivalent()

slapi_attr_basetype()