Sun Java System Directory Server Enterprise Edition 6.2 Developer's Guide

slapi_mod_isvalid()

Determines whether a Slapi_Mod structure is valid.

Syntax

#include "slapi-plugin.h"
 int slapi_mod_isvalid(const Slapi_Mod *mod);

Parameters

This function takes the following parameters:

smod

Pointer to a Slapi_Mod.

Returns

This function returns one of the following values:

Description

Use this function to verify that the contents of Slapi_Mod are valid. It is considered valid if the operation type is one of LDAP_MOD_ADD, LDAP_MOD_DELETE, LDAP_MOD_REPLACE , combined using the bitwise or operator with LDAP_MOD_BVALUES ; the attribute type is not NULL; and there is at least one attribute value for add and replace operations.