v 82 daemons/attrd/attrd_commands.c attribute_value_t *v = data; v 84 daemons/attrd/attrd_commands.c free(v->nodename); v 85 daemons/attrd/attrd_commands.c free(v->current); v 86 daemons/attrd/attrd_commands.c free(v->requested); v 87 daemons/attrd/attrd_commands.c free(v); v 141 daemons/attrd/attrd_commands.c add_attribute_value_xml(xmlNode *parent, attribute_t *a, attribute_value_t *v, v 150 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_NODE_NAME, v->nodename); v 151 daemons/attrd/attrd_commands.c if (v->nodeid > 0) { v 152 daemons/attrd/attrd_commands.c crm_xml_add_int(xml, PCMK__XA_ATTR_NODE_ID, v->nodeid); v 154 daemons/attrd/attrd_commands.c if (v->is_remote != 0) { v 157 daemons/attrd/attrd_commands.c crm_xml_add(xml, PCMK__XA_ATTR_VALUE, v->current); v 171 daemons/attrd/attrd_commands.c attribute_value_t *v = NULL; v 176 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&vIter, NULL, (gpointer *) & v)) { v 177 daemons/attrd/attrd_commands.c v->seen = FALSE; v 178 daemons/attrd/attrd_commands.c crm_trace("Clear seen flag %s[%s] = %s.", a->id, v->nodename, v->current); v 328 daemons/attrd/attrd_commands.c attribute_value_t *v = NULL; v 331 daemons/attrd/attrd_commands.c v = g_hash_table_lookup(a->values, host); v 333 daemons/attrd/attrd_commands.c int_value = attrd_expand_value(value, (v? v->current : NULL)); v 450 daemons/attrd/attrd_commands.c attribute_value_t *v; v 463 daemons/attrd/attrd_commands.c v = g_hash_table_lookup(a->values, host); v 471 daemons/attrd/attrd_commands.c (v? v->current : NULL)); v 478 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) &v)) { v 484 daemons/attrd/attrd_commands.c crm_xml_add(host_value, PCMK__XA_ATTR_NODE_NAME, v->nodename); v 485 daemons/attrd/attrd_commands.c crm_xml_add(host_value, PCMK__XA_ATTR_VALUE, v->current); v 702 daemons/attrd/attrd_commands.c attribute_value_t *v = NULL; v 710 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&vIter, NULL, (gpointer *) & v)) { v 711 daemons/attrd/attrd_commands.c crm_debug("Syncing %s[%s] = %s to %s", a->id, v->nodename, v->current, peer?peer->uname:"everyone"); v 712 daemons/attrd/attrd_commands.c add_attribute_value_xml(sync, a, v, false); v 764 daemons/attrd/attrd_commands.c attribute_value_t *v = g_hash_table_lookup(values, host); v 772 daemons/attrd/attrd_commands.c if (v == NULL) { v 773 daemons/attrd/attrd_commands.c v = calloc(1, sizeof(attribute_value_t)); v 774 daemons/attrd/attrd_commands.c CRM_ASSERT(v != NULL); v 776 daemons/attrd/attrd_commands.c v->nodename = strdup(host); v 777 daemons/attrd/attrd_commands.c CRM_ASSERT(v->nodename != NULL); v 779 daemons/attrd/attrd_commands.c v->is_remote = is_remote; v 780 daemons/attrd/attrd_commands.c g_hash_table_replace(values, v->nodename, v); v 782 daemons/attrd/attrd_commands.c return(v); v 791 daemons/attrd/attrd_commands.c attribute_value_t *v = NULL; v 797 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&vIter, NULL, (gpointer *) & v)) { v 798 daemons/attrd/attrd_commands.c if (!(v->seen) && pcmk__str_eq(v->nodename, attrd_cluster->uname, v 804 daemons/attrd/attrd_commands.c add_attribute_value_xml(sync, a, v, a->timeout_ms && a->timer); v 831 daemons/attrd/attrd_commands.c attribute_value_t *v = g_hash_table_lookup(a->values, attrd_cluster->uname); v 835 daemons/attrd/attrd_commands.c add_attribute_value_xml(sync, a, v, false); v 839 daemons/attrd/attrd_commands.c return v; v 847 daemons/attrd/attrd_commands.c attribute_value_t *v = NULL; v 932 daemons/attrd/attrd_commands.c v = attrd_lookup_or_create_value(a->values, host, xml); v 934 daemons/attrd/attrd_commands.c if (filter && !pcmk__str_eq(v->current, value, pcmk__str_casei) v 938 daemons/attrd/attrd_commands.c attr, host, v->current, value, peer->uname); v 939 daemons/attrd/attrd_commands.c v = broadcast_local_value(a); v 941 daemons/attrd/attrd_commands.c } else if (!pcmk__str_eq(v->current, value, pcmk__str_casei)) { v 943 daemons/attrd/attrd_commands.c attr, host, v->current? v->current : "(unset)", value? value : "(unset)", peer->uname); v 944 daemons/attrd/attrd_commands.c free(v->current); v 945 daemons/attrd/attrd_commands.c v->current = (value? strdup(value) : NULL); v 979 daemons/attrd/attrd_commands.c v->seen = TRUE; v 982 daemons/attrd/attrd_commands.c if ((v->nodeid == 0) && (v->is_remote == FALSE) v 984 daemons/attrd/attrd_commands.c (int*)&v->nodeid) == 0) && (v->nodeid > 0)) { v 986 daemons/attrd/attrd_commands.c crm_node_t *known_peer = crm_get_peer(v->nodeid, host); v 1078 daemons/attrd/attrd_commands.c attribute_value_t *v = NULL; v 1117 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&iter, (gpointer *) & peer, (gpointer *) & v)) { v 1118 daemons/attrd/attrd_commands.c do_crm_log(level, "* %s[%s]=%s", a->id, peer, v->requested); v 1119 daemons/attrd/attrd_commands.c free(v->requested); v 1120 daemons/attrd/attrd_commands.c v->requested = NULL; v 1225 daemons/attrd/attrd_commands.c set_alert_attribute_value(GHashTable *t, attribute_value_t *v) v 1231 daemons/attrd/attrd_commands.c a_v->nodeid = v->nodeid; v 1232 daemons/attrd/attrd_commands.c a_v->nodename = strdup(v->nodename); v 1234 daemons/attrd/attrd_commands.c if (v->current != NULL) { v 1235 daemons/attrd/attrd_commands.c a_v->current = strdup(v->current); v 1263 daemons/attrd/attrd_commands.c attribute_value_t *v = NULL; v 1316 daemons/attrd/attrd_commands.c while (g_hash_table_iter_next(&iter, NULL, (gpointer *) & v)) { v 1317 daemons/attrd/attrd_commands.c crm_node_t *peer = crm_get_peer_full(v->nodeid, v->nodename, CRM_GET_PEER_ANY); v 1322 daemons/attrd/attrd_commands.c a->id, v->nodename, v->current); v 1327 daemons/attrd/attrd_commands.c if (peer->id && (v->nodeid == 0)) { v 1328 daemons/attrd/attrd_commands.c crm_trace("Learned ID %u for node %s", peer->id, v->nodename); v 1329 daemons/attrd/attrd_commands.c v->nodeid = peer->id; v 1343 daemons/attrd/attrd_commands.c a->id, v->nodename, v->current); v 1349 daemons/attrd/attrd_commands.c a->id, v->nodename, v->current, v 1350 daemons/attrd/attrd_commands.c peer->uname, peer->uuid, peer->id, v->nodeid); v 1351 daemons/attrd/attrd_commands.c build_update_element(xml_top, a, peer->uuid, v->current); v 1355 daemons/attrd/attrd_commands.c set_alert_attribute_value(alert_attribute_value, v); v 1357 daemons/attrd/attrd_commands.c free(v->requested); v 1358 daemons/attrd/attrd_commands.c v->requested = NULL; v 1359 daemons/attrd/attrd_commands.c if (v->current) { v 1360 daemons/attrd/attrd_commands.c v->requested = strdup(v->current); v 561 daemons/controld/controld_execd.c const char *v = g_hash_table_lookup(op->params, param->rap_name); v 563 daemons/controld/controld_execd.c if (v != NULL) { v 564 daemons/controld/controld_execd.c crm_trace("Adding attr %s=%s to the xml result", param->rap_name, v); v 565 daemons/controld/controld_execd.c crm_xml_add(*result, param->rap_name, v); v 82 include/crm/common/util_compat.h guint g_str_hash_traditional(gconstpointer v); v 91 include/crm/common/util_compat.h guint crm_strcase_hash(gconstpointer v); v 91 lib/common/md5.c set_uint32 (char *cp, uint32_t v) v 93 lib/common/md5.c memcpy (cp, &v, sizeof v); v 312 lib/common/patchset.c xmlNode *v = NULL; v 334 lib/common/patchset.c v = create_xml_node(version, XML_DIFF_VSOURCE); v 341 lib/common/patchset.c crm_xml_add(v, vfields[lpc], value); v 344 lib/common/patchset.c v = create_xml_node(version, XML_DIFF_VTARGET); v 351 lib/common/patchset.c crm_xml_add(v, vfields[lpc], value); v 33 lib/common/schemas.c unsigned char v[2]; v 36 lib/common/schemas.c #define SCHEMA_ZERO { .v = { 0, 0 } } v 39 lib/common/schemas.c sscanf((s), prefix "%hhu.%hhu" suffix, &((version).v[0]), &((version).v[1])) v 42 lib/common/schemas.c crm_strdup_printf(prefix "%u.%u" suffix, (version).v[0], (version).v[1]) v 102 lib/common/schemas.c if (known_schemas[lpc].version.v[0] v 103 lib/common/schemas.c < known_schemas[best].version.v[0]) { v 164 lib/common/schemas.c if (a_version.v[i] < b_version.v[i]) { v 166 lib/common/schemas.c } else if (a_version.v[i] > b_version.v[i]) { v 198 lib/common/schemas.c known_schemas[last].version.v[i] = version->v[i]; v 199 lib/common/schemas.c if (version->v[i]) { v 410 lib/common/schemas.c && (version.v[0] < next_version.v[0])) { v 587 lib/common/strings.c pcmk__str_hash(gconstpointer v) v 592 lib/common/strings.c for (p = v; *p != '\0'; p++) v 625 lib/common/strings.c pcmk__strcase_hash(gconstpointer v) v 630 lib/common/strings.c for (p = v; *p != '\0'; p++) v 1237 lib/common/strings.c g_str_hash_traditional(gconstpointer v) v 1239 lib/common/strings.c return pcmk__str_hash(v); v 1249 lib/common/strings.c crm_strcase_hash(gconstpointer v) v 1251 lib/common/strings.c return pcmk__strcase_hash(v); v 479 lib/common/xml.c #define attr_matches(c, n, v) pcmk__str_eq(crm_element_value((c), (n)), \ v 480 lib/common/xml.c (v), pcmk__str_none) v 91 lib/gnu/md5.c set_uint32 (char *cp, uint32_t v) v 93 lib/gnu/md5.c memcpy (cp, &v, sizeof v); v 1524 lib/pengine/pe_output.c int v; v 1527 lib/pengine/pe_output.c v = 0; v 1529 lib/pengine/pe_output.c pcmk__scan_min_int(value, &v, INT_MIN); v 1531 lib/pengine/pe_output.c if (v <= 0) { v 1533 lib/pengine/pe_output.c } else if (v < expected_score) { v 1554 lib/pengine/pe_output.c int v; v 1559 lib/pengine/pe_output.c v = 0; v 1561 lib/pengine/pe_output.c pcmk__scan_min_int(value, &v, INT_MIN); v 1567 lib/pengine/pe_output.c if (v <= 0) { v 1569 lib/pengine/pe_output.c } else if (v < expected_score) {