new_graph 574 lib/pacemaker/pcmk_graph_consumer.c unpack_synapse(pcmk__graph_t *new_graph, const xmlNode *xml_synapse) new_graph 595 lib/pacemaker/pcmk_graph_consumer.c new_graph->num_synapses++; new_graph 615 lib/pacemaker/pcmk_graph_consumer.c new_graph->num_actions++; new_graph 679 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_t *new_graph = NULL; new_graph 681 lib/pacemaker/pcmk_graph_consumer.c new_graph = calloc(1, sizeof(pcmk__graph_t)); new_graph 682 lib/pacemaker/pcmk_graph_consumer.c if (new_graph == NULL) { new_graph 686 lib/pacemaker/pcmk_graph_consumer.c new_graph->source = strdup((reference == NULL)? "unknown" : reference); new_graph 687 lib/pacemaker/pcmk_graph_consumer.c if (new_graph->source == NULL) { new_graph 688 lib/pacemaker/pcmk_graph_consumer.c free(new_graph); new_graph 692 lib/pacemaker/pcmk_graph_consumer.c new_graph->id = -1; new_graph 693 lib/pacemaker/pcmk_graph_consumer.c new_graph->abort_priority = 0; new_graph 694 lib/pacemaker/pcmk_graph_consumer.c new_graph->network_delay = 0; new_graph 695 lib/pacemaker/pcmk_graph_consumer.c new_graph->stonith_timeout = 0; new_graph 696 lib/pacemaker/pcmk_graph_consumer.c new_graph->completion_action = pcmk__graph_done; new_graph 702 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(buf != NULL, free(new_graph); new_graph 704 lib/pacemaker/pcmk_graph_consumer.c pcmk__scan_min_int(buf, &(new_graph->id), -1); new_graph 707 lib/pacemaker/pcmk_graph_consumer.c CRM_CHECK(buf != NULL, free(new_graph); new_graph 709 lib/pacemaker/pcmk_graph_consumer.c new_graph->network_delay = crm_parse_interval_spec(buf); new_graph 713 lib/pacemaker/pcmk_graph_consumer.c new_graph->stonith_timeout = new_graph->network_delay; new_graph 715 lib/pacemaker/pcmk_graph_consumer.c new_graph->stonith_timeout = crm_parse_interval_spec(buf); new_graph 721 lib/pacemaker/pcmk_graph_consumer.c || (pcmk__scan_min_int(buf, &(new_graph->batch_limit), new_graph 723 lib/pacemaker/pcmk_graph_consumer.c new_graph->batch_limit = 0; new_graph 727 lib/pacemaker/pcmk_graph_consumer.c pcmk__scan_min_int(buf, &(new_graph->migration_limit), -1); new_graph 729 lib/pacemaker/pcmk_graph_consumer.c pcmk__str_update(&(new_graph->failed_stop_offset), new_graph 731 lib/pacemaker/pcmk_graph_consumer.c pcmk__str_update(&(new_graph->failed_start_offset), new_graph 735 lib/pacemaker/pcmk_graph_consumer.c &(new_graph->recheck_by)) != pcmk_ok) { new_graph 736 lib/pacemaker/pcmk_graph_consumer.c new_graph->recheck_by = 0; new_graph 744 lib/pacemaker/pcmk_graph_consumer.c pcmk__graph_synapse_t *new_synapse = unpack_synapse(new_graph, new_graph 748 lib/pacemaker/pcmk_graph_consumer.c new_graph->synapses = g_list_append(new_graph->synapses, new_graph 754 lib/pacemaker/pcmk_graph_consumer.c new_graph->id, new_graph->source, new_graph->num_actions, new_graph 755 lib/pacemaker/pcmk_graph_consumer.c new_graph->num_synapses); new_graph 757 lib/pacemaker/pcmk_graph_consumer.c return new_graph;