33.11. slapi_mod_get_operation()

Gets the operation type of Slapi_Mod structure.
Syntax

#include "slapi-plugin.h"
int slapi_mod_get_operation(const Slapi_Mod *smod);

Parameters

This function takes the following parameter:

smod
Pointer to an initialized Slapi_Mod.
Returns

This function returns one of LDAP_MOD_ADD, LDAP_MOD_DELETE, or LDAP_MOD_REPLACE, combined using the bitwise or operator with LDAP_MOD_BYVALUES.