14.34. Slapi_Value

Represents the value of the attribute in a directory entry.
Syntax

 

#include "slapi-plugin.h" 
typedef struct slapi_value Slapi_Value;
Description

Slapi_Value is the data type for an opaque structure that represents the value of an attribute in a directory entry.

The following table summarizes the front-end API functions that you can call to work with directory entry values.
To ... ... Call this function
Compare a value. slapi_value_compare()
Duplicate a value.  
Free a Slapi_Value structure from memory. slapi_value_free()
Get the berval structure of the value. slapi_value_get_berval()
Get flags from a Slapi_Value structure. slapi_value_get_flags()
Convert the value of an integer. slapi_value_get_int()
Get the length of a value. slapi_value_get_length()
Get the actual length of the value. slapi_value_get_long()
Convert a value into a long integer. slapi_value_get_long()
Return the value as a string. The value returned may not be null-terminated. slapi_value_get_string()
Convert the value into an unsigned integer. slapi_value_get_uint()
Convert the value into an unsigned long. slapi_value_get_ulong()
Initialize a Slapi_Value structure with no values. slapi_value_init()
Initialize a Slapi_Value structure from the berval structure. slapi_value_init_berval()
Initialize a Slapi_Value structure from a string. slapi_value_init_string()
Initialize a Slapi_Value structure with a value contained in a string. slapi_value_init_string_passin()
Allocate a new Slapi_Value structure. slapi_value_new()
Allocate a new Slapi_Value structure from a berval structure. slapi_value_new_berval()
Allocate a new Slapi_Value structure from a string. slapi_value_new_string()
Allocate a new Slapi_Value structure and initializes it from a string. slapi_value_new_string_passin()
Allocate a new Slapi_Value from another Slapi_Value structure. slapi_value_new_value()
Set the value. slapi_value_set()
Copy the value from a berval structure into a Slapi_Value structure. slapi_value_get_berval()
Set flags for a Slapi_Value structure. slapi_value_set_flags()
Set the integer value of a Slapi_Value structure. slapi_value_set_int()
Copy a string into thevalue. slapi_value_set_string()
Set the value. slapi_value_set_string_passin()
Copy the value of a Slapi_Value structure into another Slapi_Value structure. slapi_value_set_value()
Set flags to the array of a Slapi_Value structure. slapi_values_set_flags()
See Also

Slapi_ValueSet