HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Syntax
#include "slapi-plugin.h"
slapi_value_init_string(Slapi_Value *v,const char *s);
Parameters This function takes the following parameters:
Pointer to the value to be initialized. The pointer must not be NULL.v
A null-terminated string used to initialize the value.
s
Returns This function returns a pointer to the initialized Slapi_Value structure (itself).
42.14 slapi_value_init_string_passin()
Description This function initializes a Slapi_Value structure with the value contained in the
string. The string is not duplicated and must be freed.
Syntax
#include "slapi-plugin.h"
Slapi_Value * slapi_value_init_string_passin (Slapi_value *v,
char *s);
Parameters This function takes the following parameters:
Pointer to the value to initialize. The pointer must not be NULL.v
A null-terminated string used to initialize the value.
s
Returns This function returns a pointer to the initialized Slapi_Value structure (itself).
Memory concerns The string will be freed when the Slapi_Value structure is freed from
memory by calling “slapi_value_init_string_passin()”.
See also
“slapi_value_free()”
“slapi_value_new_string_passin()”
“slapi_value_set_string_passin()”
42.15 slapi_value_new()
Description This function returns an empty Slapi_Value structure. You can call other functions
of the API to set the value.
Syntax
#include "slapi-plugin.h"
slapi_value_new();
Parameters This function does not take any parameters.
Returns This function returns a pointer to the newly allocated Slapi_Value structure. If space
cannot be allocated (for example, if no more virtual memory exists), the slapd program
terminates.
Memory concerns When you are no longer using the value, free it from memory by calling
“slapi_value_free()”.
See also
“slapi_value_dup()”
“slapi_value_free()”
“slapi_value_new_berval()”
340 Functions for handling values