Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 252

Table of Contents

Advertisement

Functions for Handling Attributes
Description
This function replaces the deprecated function,
function to search the syntaxes for an attribute type's OID.
Memory Concerns
You should free this string using
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
type
Returns
This function returns 0 if successful.
See Also
slapi_attr_type2plugin()
slapi_attr_type_cmp()
slapi_attr_types_equivalent()
slapi_attr_basetype()
slapi_attr_get_valueset()
Copies existing values contained in an attribute into a valueset.
252
Netscape Directory Server Plug-In Programmer's Guide • August 2002
Attribute that you want to get the type for.
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.
slapi_attr_get_oid
.
slapi_ch_free()
. Use this

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents