HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
slapi_pblock_set(pb, SLAPI_MANAGEDSAIT, 1);
However, for values which are already pointers (char * strings, char **arrays,
Slapi_Back end *, etc.), you can pass in the value directly. For example:
char *target_dn = slapi_ch_strdup(some_dn); slapi_pblock_set(pb, SLAPI_TARGET_DN, target_dn);
or
slapi_pblock_set(pb, SLAPI_TARGET_DN, NULL);
With some compilers, you will have to cast the value argument to (void *). If the caller allocates
the memory passed in, the caller is responsible for freeing that memory. Also, it is recommended
to use slapi_pblock_get() to retrieve the value to free, rather than relying on a potentially
dangling pointer. See the slapi_pblock_get() example for more details.
When setting parameters to register a plug-in, the plug-in type must always be set first, because
many of the plug-in parameters depend on the type. For example, set the SLAPI_PLUGIN_TYPE
to extended operation before setting the list of extended operation OIDs for the plug-in.
See also “slapi_pblock_get()”
290 Functions for managing parameter block