| 104 | } |
| 105 | |
| 106 | static int |
| 107 | cib_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 | |
| 127 | static int |
| 128 | cib_cleanup_query(int options, xmlNode ** data, xmlNode ** output) |
nothing calls this directly
no test coverage detected