HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Syntax
#include "slapi-plugin.h"
int slapi_attr_set_valueset(Slapi_Attr *a, const Slapi_ValueSet *vs);
Parameters This function takes the following parameters:
Pointer to the Slapi_Attr structure, the valueset of which you wish to set.a
Pointer to the Slapi_ValueSet structure from which you want to extract the values.vs
Returns This function returns 0 unconditionally.
See also “slapi_valueset_set_valueset()”
19.17 slapi_attr_syntax_normalize()
Description Use this function to search the syntaxes for an attribute type and return its
normalized form.
Syntax
#include "slapi-plugin.h"
char * slapi_attr_syntax_normalize( const char *s );
Parameters This function takes the following parameters:
Attribute type for which you wish to search.
s
Returns This function returns the copy of the desired normalized attribute or a normalized
copy of what was passed in.
Memory concerns You should free the returned string using “slapi_ch_free()”
See also “slapi_ch_free()”
19.18 slapi_attr_type2plugin()
Description Gets a pointer to information about the syntax plug-in responsible for handling
the specified attribute type. Syntax plug-ins are plug-ins that you can write to index and search
for specific attribute types.
Syntax
#include "slapi-plugin.h"
int slapi_attr_type2plugin( const char *type, void **pi );
Parameters This function takes the following parameters:
Type of attribute for which you want to get the plug-in.
type
Pointer to the plug-in structure.
pi
Returns This function returns one of the following values:
0 if successful.
-1 if the corresponding plug-in is not found.
See also
slapi_attr_get_type()
“slapi_attr_type_cmp()”
“slapi_attr_types_equivalent()”
“slapi_attr_basetype()”
178 Functions for handling attributes