Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 245

Table of Contents

Advertisement

Syntax
#include "slapi-plugin.h"
char *slapi_attr_basetype( char *type, char *buf,
size_t bufsiz );
Parameters
This function takes the following parameters:
type
buf
bufsiz
Returns
This function returns
longer than the buffer, the function allocates memory for the base type and returns
a pointer to it.
Description
This function returns the base type of an attribute (for example, if given
cn;lang-jp,
Memory Concerns
You should free the returned base type when done by calling
See Also
slapi_attr_type2plugin()
slapi_attr_get_type()
slapi_attr_type_cmp()
slapi_attr_types_equivalent()
slapi_attr_dup()
Duplicates an attribute.
Syntax
#include "slapi-plugin.h"
Slapi_Attr *slapi_attr_dup(const Slapi_Attr *attr);
Attribute type from which you want to get the base type.
Buffer to hold the returned base type.
Size of the buffer.
if the base type fits in the buffer. If the base type is
NULL
returns
).
cn
Functions for Handling Attributes
slapi_ch_free()
Chapter 15
Function Reference
.
245

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents