Slapi_Attr_Type_Cmp() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Handling Attributes
See Also
slapi_attr_get_type()

slapi_attr_type_cmp()

slapi_attr_types_equivalent()
slapi_attr_basetype()
slapi_attr_type_cmp()
Compares two attribute types to determine if they are the same.
Syntax
#include "slapi-plugin.h"
int slapi_attr_type_cmp( const char *t1, const char *t2, int opt );
Parameters
This function takes the following parameters:
t1
t2
opt
Returns
This function returns one of the following values:
0
A non-zero value if the type names are not equal.
See Also
slapi_attr_type2plugin()
268
Netscape Directory Server Plug-in Programmer's Guide • October 2004
Name of the first attribute type that you want to compare.
Name of the second attribute type that you want to compare.
One of the following values:
• 0 - Compare the types as-is.
• 1 - Compare only the base names of the types (for example, if the type
is cn;lang-en, the function compares only the cn part of the type).
• 2 - Ignore any options in the second type that are not in the first type.
For example, if the first type is cn and the second type is
cn;lang-en, the lang-en option in the second type is not part of
the first type. In this case, the function considers the two types to be
the same.
if the type names are equal.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents