| 494 | } |
| 495 | |
| 496 | bool DeviceAgent::set_config_uint64(int key, uint64_t value, const sr_channel *ch, const sr_channel_group *cg) |
| 497 | { |
| 498 | assert(_dev_handle); |
| 499 | |
| 500 | GVariant *gvar = g_variant_new_uint64(value); |
| 501 | int ret = ds_set_actived_device_config(ch, cg, key, gvar); |
| 502 | |
| 503 | if (ret != SR_OK) |
| 504 | { |
| 505 | if (ret != SR_ERR_NA) |
| 506 | dsv_err("%s%d", "ERROR: DeviceAgent::set_config_uint64, Failed to set value of config id:", key); |
| 507 | return false; |
| 508 | } |
| 509 | return true; |
| 510 | } |
| 511 | |
| 512 | bool DeviceAgent::get_config_uint16(int key, int &value, const sr_channel *ch, const sr_channel_group *cg) |
| 513 | { |
no test coverage detected