Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 318

Table of Contents

Advertisement

Functions for Managing Entries
Syntax
#include "slapi-plugin.h"
int slapi_entry_attr_find( const Slapi_Entry *e, const char *type,
Slapi_Attr **attr );
Parameters
This function takes the following parameters:
e
type
attr
Returns
This function returns one of the following values:
0
-1
Memory Concerns
Do not free the returned
is usually wise to make a copy of the returned
avoid dangling pointers if the entry is freed while the pointer to
used.
See Also
slapi_attr_dup()
slapi_entry_attr_get_charptr()
Gets the first value of an attribute, of an entry, as a string.
Syntax
#include "slapi-plugin.h"
char *slapi_entry_attr_get_charptr(const Slapi_Entry* e,
char *type);
318
Netscape Directory Server Plug-In Programmer's Guide • August 2002
Entry that you want to check.
Name of the attribute that you want to check.
Pointer to the attribute, if the attribute is in the entry.
if the entry contains the specified attribute.
if the entry does not contain the specified attribute.
attr
. It is a pointer to the internal entry data structure. It
attr
, using
slapi_attr_dup()
is still being
attr
, to

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents