Synchronous C Data Types

Synchronous C Data Types

The following data types are defined for the C API:

■“hc_string_t” on page 46

■“hc_long_t” on page 46

■“hc_double_t” on page 46

■“hc_type_t” on page 47

■“hc_value_t” on page 47

■“hc_schema_t” on page 48

■“hc_nvr_t” on page 48

■“hc_session_t” on page 48

■“hc_pstmt_t” on page 49

■“read_from_data_source” on page 49

■“write_to_data_destination” on page 50

■“hcerr_t” on page 51

hc_string_t

Type for holding Unicode (UTF-8) and Latin-1 null-terminated strings.

Synopsis

typedef char *hc_string_t;

Description

This type is used interchangeably for holding Unicode (UTF-8) and Latin-1 null-terminated metadata strings. The context determines whether the contents are UTF-8 or Latin-1.

hc_long_t

Type for holding integer values.

Synopsis

typedef int64_t hc_long_t;

Description

Type for holding integer values.

hc_double_t

Type for holding floating-point values.

46

Sun StorageTek 5800 System Client API Reference Manual • June 2008

Page 46
Image 46
Sun Microsystems 5800 manual Synchronous C Data Types, Hcstringt, Hclongt, Hcdoublet