MCPcopy Index your code
hub / github.com/DreamSourceLab/DSView / get_config

Method get_config

DSView/pv/deviceagent.cpp:352–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350}
351
352GVariant* 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
366bool DeviceAgent::have_config(int key, const sr_channel *ch, const sr_channel_group *cg)
367{

Callers 4

gen_config_jsonMethod · 0.80
export_execMethod · 0.80
config_getterMethod · 0.80
config_getterMethod · 0.80

Calls 1

Tested by

no test coverage detected