25.2. slapi_entry_flag_is_set()

Determines if certain flags are set for a specified entry.
Description

In this release of Directory Server, the only external flag that can be set is SLAPI_ENTRY_FLAG_TOMBSTONE. This flag means that the entry is a tombstone entry. More flags may be exposed in future releases. You should not use your own flags.

Syntax

#include "slapi-plugin.h"
int slapi_entry_flag_is_set( const Slapi_Entry *e, unsigned char flag );

Parameters

This function takes the following parameters:

e
Entry in which you want to check the flag settings.
flag
Flag of which you want to check for presence.
Returns

This function returns one of the following values:

  • 0 if the flag is not set.
  • The value of the flag if it is set.