Sun Microsystems 5800 User Manual

Page of 136
Parameters
session
IN: The session for the host and port to talk to.
data_source_reader
IN: The source of data to be stored. See
cookie
IN: An opaque data structure (cookie) to be provided to data_source_reader. For example,
this could be a file descriptor.
nvr
IN: Pointer to a name-value record with the metadata.
system_record
OUT: Returned descriptor of a stored metadata record.
Return Codes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
HCERR_INVALID_NVR
HCERR_ILLEGAL_ARGUMENT
HCERR_NO_SUCH_TYPE
HCERR_XML_BUFFER_OVERFLOW
hc_store_metadata_ez
Adds a metadata record for the specified OID.
Synopsis
hcerr_t hc_store_metadata_ez(hc_session_t *session,
hc_oid *oid,
hc_nvr_t *nvr,
hc_system_record_t *system_record);
Synchronous C API Functions
Sun StorageTek 5800 System Client API Reference Manual • June 2008
88