Sun Microsystems 5800 User Manual

Page of 136
hc_schema_get_length
Looks up length of char and string attribute fields.
Synopsis
hcerr_t hc_schema_get_length(hc_schema_t *schema,
char *name, int *length);
Description
This function looks up the length of a char or string field associated with a given attribute
name in the current metadata schema, or returns an error if the name is not known.
Parameters
schema
IN: The schema to interrogate.
name
IN: The attribute name to look up in the schema.
length
OUT: Updated to be the length of the field associated with that name in the schema.
Return Codes
HCERR_OK
HCERR_BAD_REQUEST
HCERR_INVALID_SCHEMA
HCERR_ILLEGAL_ARGUMENT
hc_schema_get_count
Returns the number of name-value pairs in the metadata schema.
Synopsis
hcerr_t hc_schema_get_count(hc_schema_t *hsp,
hc_long_t *countp);
Synchronous C API Functions
Chapter 3 • Sun StorageTek 5800 System C Client API
61