| 1217 | } |
| 1218 | |
| 1219 | int |
| 1220 | cib_ccm_dispatch(gpointer user_data) |
| 1221 | { |
| 1222 | int rc = 0; |
| 1223 | oc_ev_t *ccm_token = (oc_ev_t *) user_data; |
| 1224 | |
| 1225 | crm_trace("received callback"); |
| 1226 | |
| 1227 | if (ccm_api_handle_event == NULL) { |
| 1228 | ccm_api_handle_event = |
| 1229 | find_library_function(&ccm_library, CCM_LIBRARY, "oc_ev_handle_event", 1); |
| 1230 | } |
| 1231 | |
| 1232 | rc = (*ccm_api_handle_event) (ccm_token); |
| 1233 | if (0 == rc) { |
| 1234 | return 0; |
| 1235 | } |
| 1236 | |
| 1237 | crm_err("CCM connection appears to have failed: rc=%d.", rc); |
| 1238 | |
| 1239 | /* eventually it might be nice to recover and reconnect... but until then... */ |
| 1240 | crm_err("Exiting to recover from CCM connection failure"); |
| 1241 | crm_exit(2); |
| 1242 | |
| 1243 | return -1; |
| 1244 | } |
| 1245 | |
| 1246 | int current_instance = 0; |
| 1247 | void |
nothing calls this directly
no test coverage detected