33.21. slapi_mod_set_operation()

Sets the operation type of a Slapi_Mod structure.
Syntax

#include "slapi-plugin.h"
void slapi_mod_set_operation(Slapi_Mod *smod, int op);

Parameters

This function takes the following parameters:

smod
Pointer to an initialized Slapi_Mod.
op
One of LDAP_MOD_ADD, LDAP_MOD_DELETE, or LDAP_MOD_REPLACE, combined using the bitwise or operator with LDAP_MOD_BYVALUES.