Sun Microsystems 5800 Computer Drive User Manual


 
hc_schema_get_length
Looks up length of char and string attribute elds.
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 eld 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 eld 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);
SynchronousCAPI Functions
Chapter3 SunStorageTek 5800SystemCClient API 61