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

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 , LDAP_MOD_REPLACE, combined using the bitwise or operator with LDAP_MOD_BVALUES.

See Also

slapi_mod_set_operation()