Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 343

Table of Contents

Advertisement

Syntax
#include "slapi-plugin.h"
size_t slapi_entry_size(Slapi_Entry *e);
Parameters
This function takes the following parameter:
e
Returns
This function returns one of the following values:
The size of the entry, rounded to the nearest 1k. The value returned is a
data type, with is a
A size of 1k if the entry is empty.
Description
When determining the size of an entry, only the sizes of the attribute values are
counted; the size of other entry values (such as the size of attribute names,
variously-normalized DNs, or any metadata) are not included in the size returned.
It is assumed that the size of the metadata et al. is well enough accounted for by the
rounding of the size to the next largest 1k (this holds true especially in larger
entries, where the actual size of the attribute values far outweighs the size of the
metadata).
Note that when determining the size of the entry, both deleted values and deleted
attributes are included in the count.
slapi_is_rootdse()
This function determines if an entry is the root DSE. The root DSE is a special entry
that contains information about the Directory Server, including its capabilities and
configuration.
Syntax
#include "slapi-plugin.h"
int slapi_is_rootdse ( const char *dn );
Parameters
This function takes the following parameters:
Entry from which you want the size returned.
value.
u_long
Functions for Managing Entries
Chapter 15
Function Reference
size_t
343

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents