HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
typedef struct slapi_mod Slapi_Mod;
Description Slapi_Mod is the data type for an opaque structure that represents LDAPMod
modifications to an attribute in a directory entry.
The following table summarizes the front end API functions that you can call to manipulate
directory entries.
Call this function:To:
“slapi_mod_add_value()”
Add a value to a Slapi_Mod structure.
“slapi_mod_done()”
Free internals of Slapi_Mod structure.
“slapi_mod_dump()”
Dump the contents of an LDAPMod to the server log.
“slapi_mod_free()”
Free a Slapi_Mod structure.
“slapi_mod_get_first_value()”
Initialize a Slapi_Mod iterator and return the first
attribute value.
“slapi_mod_get_ldapmod_byref()”
Get a reference to the LDAPMod in a Slapi_Mod structure.
“slapi_mod_get_ldapmod_passout()”
Retrieve the LDAPMod contained in a Slapi_Mod
structure.
“slapi_mod_get_next_value()”
Increment the Slapi_Mod iterator and return the next
attribute value.
“slapi_mod_get_num_values()”
Get the number of values in a Slapi_Mod structure.
“slapi_mod_get_operation()”
Get the operation type of Slapi_Mod structure.
“slapi_mod_get_type()”
Get the attribute type of a Slapi_Mod structure.
“slapi_mod_init()”
Initialize a Slapi_Mod structure.
“slapi_mod_init_byref()”
Initialize a Slapi_Mod structure that is a wrapper for an
existing LDAPMod.
“slapi_mod_init_byval()”Initialize a modification by value.
“slapi_mod_init_passin()”
Initialize a Slapi_Mod from an LDAPMod.
Initializes the given smod with the given LDAP operation
and attribute type.
“slapi_mod_init_valueset_byval()”
“slapi_mod_isvalid()”
Determine whether a Slapi_Mod structure is valid.
“slapi_mod_new()”
Allocate a new Slapi_Mod structure.
“slapi_mod_remove_value()”
Remove the value at the current Slapi_Mod iterator
position.
“slapi_mod_set_operation()”
Set the operation type of a Slapi_Mod structure.
“slapi_mod_set_type()”
Set the attribute type of a Slapi_Mod.
See also LDAPMod and “Slapi_Mods”
14.26 Slapi_Mods
Represents two or more LDAP modifications to a directory entry
Syntax
#include "slapi-plugin.h"
typedef struct slapi_mods Slapi_Mods;
14.26 Slapi_Mods 135