MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / daemon_option_enabled

Function daemon_option_enabled

lib/common/logging.c:147–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147gboolean
148daemon_option_enabled(const char *daemon, const char *option)
149{
150 const char *value = daemon_option(option);
151 if (value != NULL && crm_is_true(value)) {
152 return TRUE;
153
154 } else if (value != NULL && strstr(value, daemon)) {
155 return TRUE;
156 }
157
158 return FALSE;
159}
160
161void
162crm_log_deinit(void)

Callers 2

crm_log_initFunction · 0.85
read_configFunction · 0.85

Calls 2

daemon_optionFunction · 0.85
crm_is_trueFunction · 0.85

Tested by

no test coverage detected