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 Type of attribute for which you want to get the plug-in.
pi Pointer to the plug-in structure.
Returns

This function returns one of the following values:

  • 0 if successful.
  • -1 if the corresponding plug-in is not found.