| 101 | } |
| 102 | |
| 103 | static int |
| 104 | resource_ipc_callback(const char *buffer, ssize_t length, gpointer userdata) |
| 105 | { |
| 106 | xmlNode *msg = string2xml(buffer); |
| 107 | |
| 108 | fprintf(stderr, "."); |
| 109 | crm_log_xml_trace(msg, "[inbound]"); |
| 110 | |
| 111 | crmd_replies_needed--; |
| 112 | if (crmd_replies_needed == 0) { |
| 113 | fprintf(stderr, " OK\n"); |
| 114 | crm_debug("Got all the replies we expected"); |
| 115 | return crm_exit(0); |
| 116 | } |
| 117 | |
| 118 | free_xml(msg); |
| 119 | return 0; |
| 120 | } |
| 121 | |
| 122 | struct ipc_client_callbacks crm_callbacks = |
| 123 | { |
nothing calls this directly
no test coverage detected