| 253 | } |
| 254 | |
| 255 | bool DeviceAgent::get_device_status(struct sr_status &status, gboolean prg) |
| 256 | { |
| 257 | assert(_dev_handle); |
| 258 | |
| 259 | if (ds_get_actived_device_status(&status, prg) == SR_OK) |
| 260 | { |
| 261 | return true; |
| 262 | } |
| 263 | return false; |
| 264 | } |
| 265 | |
| 266 | struct sr_config *DeviceAgent::new_config(int key, GVariant *data) |
| 267 | { |
no test coverage detected