| 581 | } |
| 582 | |
| 583 | bool DeviceAgent::set_config_int16(int key, int value, const sr_channel *ch, const sr_channel_group *cg) |
| 584 | { |
| 585 | assert(_dev_handle); |
| 586 | |
| 587 | GVariant *gvar = g_variant_new_int16(value); |
| 588 | int ret = ds_set_actived_device_config(ch, cg, key, gvar); |
| 589 | |
| 590 | if (ret != SR_OK) |
| 591 | { |
| 592 | if (ret != SR_ERR_NA) |
| 593 | dsv_err("%s%d", "ERROR: DeviceAgent::set_config_int16, Failed to set value of config id:", key); |
| 594 | return false; |
| 595 | } |
| 596 | return true; |
| 597 | } |
| 598 | |
| 599 | bool DeviceAgent::get_config_byte(int key, int &value, const sr_channel *ch, const sr_channel_group *cg) |
| 600 | { |
no test coverage detected