Determines whether a Slapi_Mod structure is valid.
#include "slapi-plugin.h" int slapi_mod_isvalid(const Slapi_Mod *mod);
This function takes the following parameters:
Pointer to a Slapi_Mod.
This function returns one of the following values:
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.