Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 250

Table of Contents

Advertisement

Functions for Handling Attributes
attr
flags
To determine which flags have been set, you can bitwise AND the value of the
flags
SLAPI_ATTR_FLAG_SINGLE
SLAPI_ATTR_FLAG_OPATTR
SLAPI_ATTR_FLAG_READONLY
Returns
This function returns 0 if successful.
Description
This function gets the flags associated with the specified attribute. These flags can
identify an attribute as a single-valued attribute, an operational attribute, or as a
read-only attribute.
See Also
slapi_attr_flag_is_set()
slapi_attr_get_numvalues()
Puts the count of values of an attribute into a provided integer.
Syntax
#include "slapi-plugin.h"
int slapi_attr_get_numvalues( const Slapi_Attr *a, int *numValues);
Parameters
This function takes the following parameters:
250
Netscape Directory Server Plug-In Programmer's Guide • August 2002
Attribute for which you want to get the flags.
When you call slapi_attr_get_flags(), this parameter is set to a
pointer to the flags of the specified attribute. Do not free the flags; the
flags are part of the actual data in the attribute, not a copy of the data.
argument with one or more of the following:
Flag that determines if the attribute is single-valued.
Flag that determines if the attribute is an operational
attribute.
Flag that determines if the attribute is read-only.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents