Option APIs for da_datastore#

da_status da_datastore_options_set_int(da_datastore store, const char *option, da_int value)#
da_status da_datastore_options_set_string(da_datastore store, const char *option, const char *value)#
da_status da_datastore_options_set_real_s(da_datastore store, const char *option, float value)#
da_status da_datastore_options_set_real_d(da_datastore store, const char *option, double value)#

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

Parameters
  • store – [inout] the da_datastore 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_datastore_options_get_int(da_datastore store, const char *option, da_int *value)#
da_status da_datastore_options_get_string(da_datastore store, const char *option, char *value, da_int lvalue)#
da_status da_datastore_options_get_real_s(da_datastore store, const char *option, float *value)#
da_status da_datastore_options_get_real_d(da_datastore store, const char *option, double *value)#

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

Parameters
  • store – [in] the da_datastore which stores the options.

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

  • value – [out] the value of the option obtained from the store.

Returns

da_status. The function returns: