Slapi_Attr_Get_Numvalues() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
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
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:
260
Netscape Directory Server Plug-in Programmer's Guide • October 2004
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:
if successful.
0
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
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents