Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_attr_get_oid_copy()

Searches the syntaxes for an attribute type, and returns a copy of its OID string.

Syntax

#include "slapi-plugin.h"
 int slapi_attr_get_oid_copy( const Slapi_Attr *attr, char **oidp );

Parameters

This function takes the following parameters:

attr

Attribute that contains the desired type.

oidp

Destination string of the copied attribute type OID.

Returns

This function returns one of the following values:

Description

Use this function to search the syntaxes for an attribute type’s OID.

Memory Concerns

You should free this string using slapi_ch_free().