Option APIs for da_handle#

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: