Option APIs for da_handle - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
da_status da_options_set_int(da_handle handle, const char *option, da_int value)#
da_status da_options_set_string(da_handle handle, const char *option, const char *value)#
da_status da_options_set_real_s(da_handle handle, const char *option, float value)#
da_status da_options_set_real_d(da_handle handle, const char *option, double value)#

Set an option, to be stored inside the handle argument.

Parameters:
  • handle[inout] the da_handle which will store the value of the option.

  • option[in] the name of the option to set.

  • value[in] the value to set the option to.

Returns:

da_status. The function returns:

da_status da_options_get_int(da_handle handle, const char *option, da_int *value)#
da_status da_options_get_string(da_handle handle, const char *option, char *value, da_int *lvalue)#
da_status da_options_get_real_s(da_handle handle, const char *option, float *value)#
da_status da_options_get_real_d(da_handle handle, const char *option, double *value)#

Get the current value of an option stored inside the handle argument.

Parameters:
  • handle[in] the da_handle which stores the options.

  • option[in] the name of the option to get.

  • value[out] the value of the option obtained from the handle.

Returns:

da_status. The function returns: