HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
24.18 slapi_entry_attr_get_ulong()
Gets the first value of an attribute in an entry as a unsigned long data type.
Syntax
#include "slapi-plugin.h"
unsigned long slapi_entry_attr_get_ulong( const Slapi_Entry* e,
const char *type);
Parameters This function takes the following parameters:
Entry from which you want to get the value.
e
Attribute type from which you want to get the value.
type
Returns This function returns one of the following values:
The first value in the attribute converted to an unsigned long.
0 if the entry does not contain the attribute specified.
24.19 slapi_entry_attr_has_syntax_value()
Description This function replaces the deprecated slapi_entry_attr_hasvalue() function
and takes into consideration the syntax of the attribute type. It determines if an attribute in an
entry contains a specified value.
Syntax
#include "slapi-plugin.h"
int slapi_entry_attr_has_syntax_value(const Slapi_Entry *e,
const char *type, const Slapi_Value *value);
Parameters
Entry that you want to check.
e
Attribute type that you want to test for the value specified.
type
Value that you want to find in the attribute.
value
Returns This function returns one of the following values:
1 If the attribute contains the specified value.
0 If the attribute does not contain the specified value.
Memory concerns value must not be NULL.
24.20 slapi_entry_attr_merge_sv()
Description Adds an array of Slapi_Value data values to the existing attribute values in an
entry. If the attribute does not exist, it is created with the Slapi_Value specified. This function
replaces the deprecated slapi_entry_attr_merge() function. This function uses
Slapi_Value attribute values instead of the now obsolete berval attribute values.
Syntax
#include "slapi-plugin.h"
int slapi_entry_attr_merge_sv( Slapi_Entry *e, const char *type,
Slapi_Value **vals );
220 Functions for managing entries