| 350 | } |
| 351 | |
| 352 | GVariant* DeviceAgent::get_config(int key, const sr_channel *ch, const sr_channel_group *cg) |
| 353 | { |
| 354 | assert(_dev_handle); |
| 355 | GVariant *data = NULL; |
| 356 | |
| 357 | int ret = ds_get_actived_device_config(ch, cg, key, &data); |
| 358 | if (ret != SR_OK) |
| 359 | { |
| 360 | if (ret != SR_ERR_NA) |
| 361 | dsv_err("%s%d", "ERROR:DeviceAgent::get_config, Failed to get value of config id:", key); |
| 362 | } |
| 363 | return data; |
| 364 | } |
| 365 | |
| 366 | bool DeviceAgent::have_config(int key, const sr_channel *ch, const sr_channel_group *cg) |
| 367 | { |
no test coverage detected