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

For plug-in
Table of Contents

Advertisement

Description
This function replaces the unique ID value of the entry with the
that you specify. In addition, the function adds
attribute list and gives it the unique ID value supplied. If the entry already contains
a
SLAPI_ATTR_UNIQUEID
supplied.
Memory Concerns
Do not free the
freed when
You should pass in a copy of the value because this function will consume the
value passed in. For example:
char *uniqueid = slapi_ch_strdup(some_uniqueid);
slapi_entry_set_uniqueid(e, uniqueid);
Do not pass in a
See Also
slapi_entry_free()

slapi_entry_size()

This function returns the approximate size of an entry, rounded to the nearest 1k.
This can be useful for checking cache sizes, estimating storage needs, and so on.
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 a
attribute, its value is updated with the new value
after calling this function. The value will eventually be
uniqueid
slapi_entry_free()
for
NULL
uniqueid
Entry from which you want the size returned.
value.
u_long
SLAPI_ATTR_UNIQUEID
is called.
.
Chapter 15
Functions for Managing Entries
value
uniqueid
to the
size_t
Function Reference
353

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