HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
42.16 slapi_value_new_berval()
Description This function returns a Slapi_Value structure containing a value duplicated
from the berval structure passed as the parameter.
Syntax
#include "slapi-plugin.h"
slapi_value_new_berval(const struct berval *bval);
Parameters This function takes the following parameter:
Pointer to the berval structure used to initialize the newly allocated Slapi_Value.bval
Returns This function returns a pointer to the newly allocated Slapi_Value. If space cannot
be allocated (for example, if no more virtual memory exists), the slapd program will terminate.
Memory concerns When you are no longer using the value, you should free it from memory
by calling “slapi_value_free()”.
See also
“slapi_value_new()”
“slapi_value_dup()”
“slapi_value_free()”
“slapi_value_new_string()”
42.17 slapi_value_new_string()
Description This function returns a Slapi_Value structure containing a value duplicated
from the string passed as the parameter.
Syntax
#include "slapi-plugin.h"
slapi_value_new_string(const char *s);
Parameters This function takes the following parameter:
A null-terminated string used to initialize the newly-allocated Slapi_Value.s
Returns This function returns a pointer to the newly allocated Slapi_Value. If space cannot
be allocated (for example, if no more virtual memory exists), the slapd program will terminate.
Memory concerns When you are no longer using the value, you should free it from memory
by calling “slapi_value_free()”.
See also
“slapi_value_new()”
“slapi_value_new_berval()”
“slapi_value_free()”
“slapi_value_dup()”
42.18 slapi_value_new_string_passin()
Description This function returns a Slapi_Value structure containing the string passed as
the parameter. The string passed in must not be freed from memory.
Syntax
#include "slapi-plugin.h"
Slapi_Value * slapi_value_new_string_passin ( char *s );
42.16 slapi_value_new_berval() 341