Synchronous C API Functions

“hc_schema_get_type_at_index” on page 62

hc_schema_get_type

Looks up type in schema.

Synopsis

hcerr_t hc_schema_get_type(hc_schema_t *schema,

char *name, hc_type_t *typep);

Description

This function looks up the type associated with a given 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.

typep

OUT: Updated to be the type associated with that name in the schema.

Return Codes

HCERR_OK

HCERR_BAD_REQUEST

HCERR_OOM

HCERR_INVALID_SCHEMA

HCERR_ILLEGAL_ARGUMENT

60

Sun StorageTek 5800 System Client API Reference Manual • June 2008

Page 60
Image 60
Sun Microsystems 5800 manual Hcschemagettype