| 377 | |
| 378 | #if SUPPORT_COROSYNC |
| 379 | static gboolean |
| 380 | cib_ais_dispatch(int kind, const char *from, const char *data) |
| 381 | { |
| 382 | xmlNode *xml = NULL; |
| 383 | |
| 384 | if (kind == crm_class_cluster) { |
| 385 | xml = string2xml(data); |
| 386 | if (xml == NULL) { |
| 387 | goto bail; |
| 388 | } |
| 389 | crm_xml_add(xml, F_ORIG, from); |
| 390 | /* crm_xml_add_int(xml, F_SEQ, wrapper->id); */ |
| 391 | cib_peer_callback(xml, NULL); |
| 392 | } |
| 393 | |
| 394 | free_xml(xml); |
| 395 | return TRUE; |
| 396 | |
| 397 | bail: |
| 398 | crm_err("Invalid XML: '%.120s'", data); |
| 399 | return TRUE; |
| 400 | |
| 401 | } |
| 402 | |
| 403 | static void |
| 404 | cib_ais_destroy(gpointer user_data) |
nothing calls this directly
no test coverage detected