hc_session_get_archive
Returnsthe current archive object associated with this session.
Synopsis
hcerr_t hc_session_get_archive(hc_session_t *session,
hc_archive_t **archivep);
Description
Thisfunction returns the current archive object associated with this session.
Note– The archive object is not needed for the synchronous C API, but is made available for
interfacingwith the lower-level (nondocumented) API.
Parameters
session
IN:The session object.
archivep
OUT:Updated to be the archive object associated with the current session.
ReturnCodes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_OOM
HCERR_NULL_SESSION
HCERR_INVALID_SESSION
Managing a Schema
Whena session commences, the C client API downloads information about the metadata
schemathat is in use on the 5800 system server.
Thefollowing functions are used to manage a schema:
hc_schema_get_type”on page 60
hc_schema_get_length”on page 61
hc_schema_get_count”on page 61
SynchronousCAPI Functions
Chapter3 • Sun StorageTek 5800 System C Client API 59