Functions Specific to Virtual Attribute Service
Functions Specific to Virtual Attribute Service
This section contains reference information on routines that are specific to virtual
attribute services.
Table 14-30 Virtual Attribute Service Routines
Function
slapi_vattr_value_compare()
slapi_vattr_values_free()
slapi_vattr_values_get_ex()
slapi_vattr_value_compare()
Compares attribute type and name in a given entry.
Syntax
#include "slapi-plugin.h"
int slapi_vattr_value_compare( Slapi_Entry *e, char *type,
Slapi_Value *test_this, int *result, int flags);
Parameters
This function takes the following parameters:
e
type
test_this
result
flags
Returns
This function returns 0 for success, in which case result contains the result of the
comparison. Otherwise, this function returns the following:
•
SLAPI_VIRTUALATTRS_LOOP_DETECTED
476
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Description
Compares attribute type and name in an given entry.
Frees the valueset and type names.
Returns the values for an attribute type from an entry.
Entry to be compared.
Attribute type name.
Value to be tested.
0 if the compare is true, 1 if the compare is false.
Not used. You should pass 0 for this parameter.
(failed to evaluate a
vattr
).
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.02 - PLUG-IN and is the answer not in the manual?
Questions and answers