| 523 | } |
| 524 | |
| 525 | bool DeviceAgent::set_config_uint16(int key, int value, const sr_channel *ch, const sr_channel_group *cg) |
| 526 | { |
| 527 | assert(_dev_handle); |
| 528 | |
| 529 | GVariant *gvar = g_variant_new_uint16(value); |
| 530 | int ret = ds_set_actived_device_config(ch, cg, key, gvar); |
| 531 | |
| 532 | if (ret != SR_OK) |
| 533 | { |
| 534 | if (ret != SR_ERR_NA) |
| 535 | dsv_err("%s%d", "ERROR: DeviceAgent::set_config_uint16, Failed to set value of config id:", key); |
| 536 | return false; |
| 537 | } |
| 538 | return true; |
| 539 | } |
| 540 | |
| 541 | bool DeviceAgent::get_config_uint32(int key, uint32_t &value, const sr_channel *ch, const sr_channel_group *cg) |
| 542 | { |
no test coverage detected