HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
25 Functions related to entry flags
This chapter contains reference information on functions that are specific to entry flags.
Table 25-1 Entry flags
DescriptionFunction
Clears a flag for a specified entry.“slapi_entry_clear_flag()”
Checks if certain flags are set in an entry.“slapi_entry_flag_is_set()”
Sets a flag for an entry.“slapi_entry_set_flag()”
25.1 slapi_entry_clear_flag()
Clears a flag 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. Do not use your own flags.
Syntax
#include "slapi-plugin.h"
void slapi_entry_clear_flag( Slapi_Entry *e, unsigned char flag);
Parameters This function takes the following parameters:
Entry in which you want to clear the flag settings.
e
Flag that you want to clear.
flag
See also
“slapi_entry_flag_is_set()”
“slapi_entry_set_flag()”
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:
Entry in which you want to check the flag settings.
e
Flag of which you want to check for presence.
flag
Returns This function returns one of the following values:
0 If the flag is not set.
flag value The value of the flag if it is set.
See also
25.1 slapi_entry_clear_flag() 233