Sun StorageTek 5800 System Client API Reference Guide

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