smc_get_dataitem_type

Description

Returns the datatype for the specified data item.

Syntax

SMC_RETURN_CODE smc_get_dataitem_type 
 (SMC_DATAITEM_STRUCTP     dataItemHandle,
 	SMC_DATAITEM_TYPEP       ptrType)

Parameters

dataItemHandle

pointer to data item and statistical type.

ptrType

pointer to data value type.

Returns

Return value

Indicates

SMC_RET_SUCCESS

Function succeeded.

SMC_RET_FAILURE

Function failed.

Examples

Example 1

SMC_DATAITEM_STRUCT  dataItem =
                      { SMC_NAME_PAGE_LOGICAL_READ,
                         SMC_STAT_VALUE_SAMPLE };
 SMC_DATAITEM_STRUCTP dataItemHandle = &dataItem;
 SMC_DATAITEM_TYPE dataItemType;
 SMC_DATAITEM_TYPEP dataItemTypeHandle = &dataItemType;

if (smc_get_dataitem_type(dataItemHandle,
         dataItemTypeHandle) != SMC_RET_SUCCESS) 
 {
 		printf("smc_get_dataitem_type failed\n");
 		/* do some cleanup */
 }

Usage

See also

smc_create_view