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

Method set_config_uint64

DSView/pv/deviceagent.cpp:496–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496bool 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
512bool DeviceAgent::get_config_uint16(int key, int &value, const sr_channel *ch, const sr_channel_group *cg)
513{

Callers 9

go_vDialPreMethod · 0.80
go_vDialNextMethod · 0.80
commit_settingsMethod · 0.80
set_factorMethod · 0.80
commit_settingsMethod · 0.80
commit_hori_resMethod · 0.80
commit_settingsMethod · 0.80
set_valueMethod · 0.80
hold_changedMethod · 0.80

Calls 1

Tested by

no test coverage detected