HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
42.10 slapi_value_get_ulong()
Description Converts the value contained in the Slapi_Value structure into an unsigned long
integer.
Syntax
#include "slapi-plugin.h"
unsigned long slapi_value_get_ulong(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 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_long()”
“slapi_value_get_uint()”
42.11 slapi_value_init()
Description This function initializes the Slapi_Value structure, resetting all its fields to zero.
The value passed as the parameter must be a valid Slapi_Value.
Syntax
#include "slapi-plugin.h"
slapi_value_init(Slapi_Value *v);
Parameters This function takes the following parameter:
Pointer to the value to be initialized. The pointer must not be NULL.v
Returns This function returns a pointer to the initialized Slapi_Value structure (itself).
42.12 slapi_value_init_berval()
Description This function initializes the Slapi_Value structure with the value contained in
the berval structure. The content of the berval structure is duplicated.
Syntax
#include "slapi-plugin.h"
slapi_value_init_berval(Slapi_Value *v, struct berval *bval);
Parameters This function takes the following parameters:
Pointer to the value to initialize. The pointer must not be NULL.v
Pointer to the berval structure to be used to initialize the value.bval
Returns This function returns a pointer to the initialized Slapi_Value structure (itself).
42.13 slapi_value_init_string()
Description This function initializes the Slapi_Value structure with the value contained in
the string. The string is duplicated.
42.10 slapi_value_get_ulong() 339