Sun StorageTek 5800 System Client API Reference Guide

hc_nvr_create

Creates a name-value record.

Synopsis

     hcerr_t hc_nvr_create(hc_session_t *session,
          hc_long_t nslots, 
          hc_nvr_t **nvrp);

Description

This function creates a name-value record with a designated initial size that is associated with a particular session. Metadata that is added to this name-value record must match the schema associated with the session.

Parameters

session

IN: The session with which this name-value record is associated.

nslots

IN: The number of slots for name-value-type tuples.

nvrp

OUT: Updated with a pointer to a new name-value record of the designated size.

Return Codes

     HCERR_OK
     HCERR_ILLEGAL_ARGUMENT
     HCERR_OOM

See Also

hc_nvr_free