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

Function add_hash_param

lib/pengine/common.c:423–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423void
424add_hash_param(GHashTable * hash, const char *name, const char *value)
425{
426 CRM_CHECK(hash != NULL, return);
427
428 crm_trace("adding: name=%s value=%s", crm_str(name), crm_str(value));
429 if (name == NULL || value == NULL) {
430 return;
431
432 } else if (safe_str_eq(value, "#default")) {
433 return;
434
435 } else if (g_hash_table_lookup(hash, name) == NULL) {
436 g_hash_table_insert(hash, strdup(name), strdup(value));
437 }
438}

Callers 15

create_child_cloneFunction · 0.85
clone_unpackFunction · 0.85
process_orphan_resourceFunction · 0.85
unpack_rsc_opFunction · 0.85
dup_attrFunction · 0.85
get_meta_attributesFunction · 0.85
common_unpackFunction · 0.85
CancelXmlOpFunction · 0.85
probe_resourcesFunction · 0.85
pe_fence_opFunction · 0.85
stage6Function · 0.85
dup_attrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected