HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameter:
Pointer to the Slapi_Value that you wish to get as a long integer.value
Returns This function returns one of the following values:
A long integer which corresponds to the value stored in the Slapi_Value structure.
0 if there is no value.
See also
“slapi_value_get_int()”
“slapi_value_get_ulong()”
“slapi_value_get_uint()”
42.8 slapi_value_get_string()
Returns the value as a string.
Syntax
#include "slapi-plugin.h"
const char*slapi_value_get_string(const Slapi_Value *value);
Parameters This function takes the following parameter:
Pointer to the value you wish to get as a string.
value
Returns This function returns one of the following values:
A string containing the value. The function returns a pointer to the actual string value in
Slapi_Value, not a copy of it.
NULL if there is no value.
Memory concerns You should not free the string unless to plan to replace it by calling
“slapi_value_set_string()”.
See also “slapi_value_set_string()”
42.9 slapi_value_get_uint()
Description Converts the value contained in Slapi_Value into an unsigned integer.
Syntax
#include "slapi-plugin.h"
unsigned int slapi_value_get_uint(const Slapi_Value *value);
Parameters This function takes the following parameter:
Pointer to the value that you wish to get as an unsigned integer.
value
Returns This function returns one of the following values:
An unsigned integer which corresponds to the value stored in the Slapi_Value structure.
0 if there is no value.
See also
“slapi_value_get_int()”
“slapi_value_get_long()”
“slapi_value_get_ulong()”
338 Functions for handling values