hc_nvr_add_from_string
Addsa new metadata value where the value always starts out as a string.
Synopsis
hcerr_t hc_nvr_add_from_string(hc_nvr_t *nvr,
char *name,
char *value);
Description
Thisis a convenient function for adding a new metadata name-value-type tuple to a designated
name-value,where the value always starts out as a string. The correct metadata type for name
mustbe looked up from the schema. The name-value record will automatically expand as
needed.The string is copied into the structure.
Parameters
nvr
Pointsto a name-value-record.
name
IN:Name for the tuple.
value
IN:The string value to be added.
ReturnCodes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_INVALID_NVR
HCERR_ILLEGAL_ARGUMENT
SynchronousCAPI Functions
Chapter3 • Sun StorageTek 5800 System C Client API 75