Parameters, Return codes, Hc_nvr_create_from_string_arrays – Sun Microsystems Sun StorageTek 5800 User Manual
Page 84: Synopsis
This function retrieves the value of type struct timespec associated with an indicated
attribute name in a name-value record.
Parameters
nvr
Points to a name-value-record.
name
IN: Name for the tuple.
value
OUT: Updated with the struct timespec (time.h) value.
Return Codes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_INVALID_NVR
HCERR_ILLEGAL_ARGUMENT
HCERR_ILLEGAL_VALUE_FOR_METADATA
HCERR_NO_SUCH_ATTRIBUTE
Creating and Converting Name-Value Records From
and To String Arrays
The following functions are defined to create name-value records from string arrays and
convert name-value records to string arrays:
■
“hc_nvr_create_from_string_arrays” on page 84
■
“hc_nvr_convert_to_string_arrays” on page 86
hc_nvr_create_from_string_arrays
Creates name-value-record from string names and string values.
Synopsis
hcerr_t hc_nvr_create_from_string_arrays(hc_session_t *session,
hc_nvr_t **nvrp,
Synchronous C API Functions
Sun StorageTek 5800 System Client API Reference Manual • June 2008
84