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

Method get_config_bool

DSView/pv/deviceagent.cpp:453–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451 }
452
453bool DeviceAgent::get_config_bool(int key, bool &value, const sr_channel *ch, const sr_channel_group *cg)
454{
455 GVariant* gvar = get_config(key, ch, cg);
456
457 if (gvar != NULL) {
458 gboolean v = g_variant_get_boolean(gvar);
459 value = v > 0;
460 g_variant_unref(gvar);
461 return true;
462 }
463
464 return false;
465}
466
467bool DeviceAgent::set_config_bool(int key, bool value, const sr_channel *ch, const sr_channel_group *cg)
468{

Callers 15

action_stop_captureMethod · 0.80
bind_bandwidthsMethod · 0.80
set_enableMethod · 0.80
auto_setMethod · 0.80
get_mapDefaultMethod · 0.80
receive_endMethod · 0.80
check_calibrationMethod · 0.80
paintSignalsMethod · 0.80
on_configureMethod · 0.80
commit_settingsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected