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

Function cib_prepare_diff

cib/common.c:106–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106static int
107cib_prepare_diff(xmlNode * request, xmlNode ** data, const char **section)
108{
109 xmlNode *input_fragment = NULL;
110 const char *update = crm_element_value(request, F_CIB_GLOBAL_UPDATE);
111
112 *data = NULL;
113 *section = NULL;
114
115 if (crm_is_true(update)) {
116 input_fragment = get_message_xml(request, F_CIB_UPDATE_DIFF);
117
118 } else {
119 input_fragment = get_message_xml(request, F_CIB_CALLDATA);
120 }
121
122 CRM_CHECK(input_fragment != NULL, crm_log_xml_warn(request, "no input"));
123 *data = cib_prepare_common(input_fragment, NULL);
124 return pcmk_ok;
125}
126
127static int
128cib_cleanup_query(int options, xmlNode ** data, xmlNode ** output)

Callers

nothing calls this directly

Calls 4

crm_element_valueFunction · 0.85
crm_is_trueFunction · 0.85
get_message_xmlFunction · 0.85
cib_prepare_commonFunction · 0.85

Tested by

no test coverage detected