Obsolete and replacement functions

Table C-1 maps obsolete Monitor Client Library functions to their replacement functions:

Table C-1: Obsolete functions and replacement functions

Obsolete

Replacement

smc_change_error_handler

smc_connect_props

smc_connect

smc_connect_alloc smc_connect_props smc_connect_ex

smc_create_alarm

smc_create_alarm_ex

smc_disconnect

smc_close smc_connect_drop

smc_refresh

smc_refresh_ex

The most significant syntactic difference between the obsolete and replacement functions is the callback function parameter. In earlier versions, SMC_CALLBACK, SMC_ALARM_CALLBACK, and SMC_ERR_CALLBACK were used to specify a callback function. These callback function types are have been replaced by SMC_GEN_CALLBACK.

NoteThe new refresh function, smc_refresh_ex, does not use any callback function, unlike the obsolete smc_refresh.

In addition to changing the callback function types, smc_connect and smc_disconnect have been replaced by a set of functions that allow for greater flexibility and control.